Object

com.twitter.finagle.netty4.channel

AnyToHeapInboundHandler

Related Doc: package channel

Permalink

object AnyToHeapInboundHandler extends ChannelInboundHandlerAdapter

An inbound channel handler that copies byte buffers onto the JVM heap and gives them a deterministic lifecycle. This handler also makes sure to use the unpooled byte buffer (regardless of what channel's allocator is) as its destination thereby defining a clear boundaries between pooled and unpooled environments.

Annotations
@Sharable()
Note

If your protocol manages ref-counting or if you are delegating ref-counting to application space you don't need this handler in your pipeline. Every other use case needs this handler or you will with very high probability incur a direct buffer leak.

,

This handler recognizes both ByteBuf's and ByteBufHolder's (think of HTTP messages extending ByteBufHolder's in Netty).

,

If the input buffer is not readable it's still guaranteed to be released and replaced with EmptyByteBuf.

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def channelActive(arg0: ChannelHandlerContext): Unit

    Permalink
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  6. def channelInactive(arg0: ChannelHandlerContext): Unit

    Permalink
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  7. def channelRead(ctx: ChannelHandlerContext, msg: Any): Unit

    Permalink
    Definition Classes
    AnyToHeapInboundHandler → ChannelInboundHandlerAdapter → ChannelInboundHandler
  8. def channelReadComplete(arg0: ChannelHandlerContext): Unit

    Permalink
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  9. def channelRegistered(arg0: ChannelHandlerContext): Unit

    Permalink
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  10. def channelUnregistered(arg0: ChannelHandlerContext): Unit

    Permalink
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  11. def channelWritabilityChanged(arg0: ChannelHandlerContext): Unit

    Permalink
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def ensureNotSharable(): Unit

    Permalink
    Attributes
    protected[io.netty.channel]
    Definition Classes
    ChannelHandlerAdapter
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def exceptionCaught(arg0: ChannelHandlerContext, arg1: Throwable): Unit

    Permalink
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler → ChannelHandlerAdapter → ChannelHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def handlerAdded(arg0: ChannelHandlerContext): Unit

    Permalink
    Definition Classes
    ChannelHandlerAdapter → ChannelHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  20. def handlerRemoved(arg0: ChannelHandlerContext): Unit

    Permalink
    Definition Classes
    ChannelHandlerAdapter → ChannelHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def isSharable(): Boolean

    Permalink
    Definition Classes
    ChannelHandlerAdapter
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. def userEventTriggered(arg0: ChannelHandlerContext, arg1: Any): Unit

    Permalink
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ChannelInboundHandlerAdapter

Inherited from ChannelInboundHandler

Inherited from ChannelHandlerAdapter

Inherited from ChannelHandler

Inherited from AnyRef

Inherited from Any

Ungrouped