c

org.apache.spark.network.util

TransportFrameDecoder

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.

Linear Supertypes
ChannelInboundHandlerAdapter, ChannelInboundHandler, ChannelHandlerAdapter, ChannelHandler, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TransportFrameDecoder
  2. ChannelInboundHandlerAdapter
  3. ChannelInboundHandler
  4. ChannelHandlerAdapter
  5. ChannelHandler
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TransportFrameDecoder()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def channelActive(arg0: ChannelHandlerContext): Unit
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws(classOf[java.lang.Exception]) @Skip()
  6. def channelInactive(ctx: ChannelHandlerContext): Unit
    Definition Classes
    TransportFrameDecoder → ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @Override()
  7. def channelRead(ctx: ChannelHandlerContext, data: AnyRef): Unit
    Definition Classes
    TransportFrameDecoder → ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @Override()
  8. def channelReadComplete(arg0: ChannelHandlerContext): Unit
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws(classOf[java.lang.Exception]) @Skip()
  9. def channelRegistered(arg0: ChannelHandlerContext): Unit
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws(classOf[java.lang.Exception]) @Skip()
  10. def channelUnregistered(arg0: ChannelHandlerContext): Unit
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws(classOf[java.lang.Exception]) @Skip()
  11. def channelWritabilityChanged(arg0: ChannelHandlerContext): Unit
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws(classOf[java.lang.Exception]) @Skip()
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  13. def ensureNotSharable(): Unit
    Attributes
    protected[channel]
    Definition Classes
    ChannelHandlerAdapter
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. def exceptionCaught(ctx: ChannelHandlerContext, cause: Throwable): Unit
    Definition Classes
    TransportFrameDecoder → ChannelInboundHandlerAdapter → ChannelInboundHandler → ChannelHandlerAdapter → ChannelHandler
    Annotations
    @Override()
  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def handlerAdded(arg0: ChannelHandlerContext): Unit
    Definition Classes
    ChannelHandlerAdapter → ChannelHandler
    Annotations
    @throws(classOf[java.lang.Exception])
  20. def handlerRemoved(ctx: ChannelHandlerContext): Unit
    Definition Classes
    TransportFrameDecoder → ChannelHandlerAdapter → ChannelHandler
    Annotations
    @Override()
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def isSharable(): Boolean
    Definition Classes
    ChannelHandlerAdapter
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. def setInterceptor(interceptor: Interceptor): Unit
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. def userEventTriggered(arg0: ChannelHandlerContext, arg1: AnyRef): Unit
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws(classOf[java.lang.Exception]) @Skip()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from ChannelInboundHandlerAdapter

Inherited from ChannelInboundHandler

Inherited from ChannelHandlerAdapter

Inherited from ChannelHandler

Inherited from AnyRef

Inherited from Any

Ungrouped