class TransportFrameDecoder extends ChannelInboundHandlerAdapter
A customized frame decoder that allows intercepting raw data.
This behaves like Netty's frame decoder (with hard coded parameters that match this library's needs), except it allows an interceptor to be installed to read data directly before it's framed.
Unlike Netty's frame decoder, each frame is dispatched to child handlers as soon as it's decoded, instead of building as many frames as the current buffer allows and dispatching all of them. This allows a child handler to install an interceptor if needed.
If an interceptor is installed, framing stops, and data is instead fed directly to the interceptor. When the interceptor indicates that it doesn't need to read any more data, framing resumes. Interceptors should not hold references to the data buffers provided to their handle() method.
- Alphabetic
- By Inheritance
- TransportFrameDecoder
- ChannelInboundHandlerAdapter
- ChannelInboundHandler
- ChannelHandlerAdapter
- ChannelHandler
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TransportFrameDecoder()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
channelActive(arg0: ChannelHandlerContext): Unit
- Definition Classes
- ChannelInboundHandlerAdapter → ChannelInboundHandler
- Annotations
- @throws( classOf[java.lang.Exception] ) @Skip()
-
def
channelInactive(ctx: ChannelHandlerContext): Unit
- Definition Classes
- TransportFrameDecoder → ChannelInboundHandlerAdapter → ChannelInboundHandler
- Annotations
- @Override()
-
def
channelRead(ctx: ChannelHandlerContext, data: Any): Unit
- Definition Classes
- TransportFrameDecoder → ChannelInboundHandlerAdapter → ChannelInboundHandler
- Annotations
- @Override()
-
def
channelReadComplete(arg0: ChannelHandlerContext): Unit
- Definition Classes
- ChannelInboundHandlerAdapter → ChannelInboundHandler
- Annotations
- @throws( classOf[java.lang.Exception] ) @Skip()
-
def
channelRegistered(arg0: ChannelHandlerContext): Unit
- Definition Classes
- ChannelInboundHandlerAdapter → ChannelInboundHandler
- Annotations
- @throws( classOf[java.lang.Exception] ) @Skip()
-
def
channelUnregistered(arg0: ChannelHandlerContext): Unit
- Definition Classes
- ChannelInboundHandlerAdapter → ChannelInboundHandler
- Annotations
- @throws( classOf[java.lang.Exception] ) @Skip()
-
def
channelWritabilityChanged(arg0: ChannelHandlerContext): Unit
- Definition Classes
- ChannelInboundHandlerAdapter → ChannelInboundHandler
- Annotations
- @throws( classOf[java.lang.Exception] ) @Skip()
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
ensureNotSharable(): Unit
- Attributes
- protected[channel]
- Definition Classes
- ChannelHandlerAdapter
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exceptionCaught(ctx: ChannelHandlerContext, cause: Throwable): Unit
- Definition Classes
- TransportFrameDecoder → ChannelInboundHandlerAdapter → ChannelInboundHandler → ChannelHandlerAdapter → ChannelHandler
- Annotations
- @Override()
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
handlerAdded(arg0: ChannelHandlerContext): Unit
- Definition Classes
- ChannelHandlerAdapter → ChannelHandler
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
handlerRemoved(ctx: ChannelHandlerContext): Unit
- Definition Classes
- TransportFrameDecoder → ChannelHandlerAdapter → ChannelHandler
- Annotations
- @Override()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isSharable(): Boolean
- Definition Classes
- ChannelHandlerAdapter
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def setInterceptor(interceptor: Interceptor): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
userEventTriggered(arg0: ChannelHandlerContext, arg1: Any): Unit
- Definition Classes
- ChannelInboundHandlerAdapter → ChannelInboundHandler
- Annotations
- @throws( classOf[java.lang.Exception] ) @Skip()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()