GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Use
  • Tree
  • Deprecated
  • Index
  • Search
  • Help
  • io.netty.channel
  • ChannelHandlerAdapter

This view

  • Original page
  • New address

GeezerVison is showing netty.io — ChannelHandlerAdapter (Netty API Reference (4.1.141.Final))

Class ChannelHandlerAdapter

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
All Implemented Interfaces:
ChannelHandler
Direct Known Subclasses:
ChannelInboundHandlerAdapter, ChannelOutboundHandlerAdapter, Http2FrameLogger

public abstract class ChannelHandlerAdapter extends Object implements ChannelHandler
Skeleton implementation of a ChannelHandler.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface ChannelHandler

    ChannelHandler.Sharable
    Modifier and Type
    Interface
    Description
    static @interface 
    ChannelHandler.Sharable
    Indicates that the same instance of the annotated ChannelHandler can be added to one or more ChannelPipelines multiple times without a race condition.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChannelHandlerAdapter()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    ensureNotSharable()
    Throws IllegalStateException if isSharable() returns true
    void
    exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
    Deprecated.
    is part of ChannelInboundHandler
    void
    handlerAdded(ChannelHandlerContext ctx)
    Do nothing by default, sub-classes may override this method.
    void
    handlerRemoved(ChannelHandlerContext ctx)
    Do nothing by default, sub-classes may override this method.
    boolean
    isSharable()
    Return true if the implementation is ChannelHandler.Sharable and so can be added to different ChannelPipelines.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChannelHandlerAdapter

      public ChannelHandlerAdapter()
  • Method Details

    • ensureNotSharable

      protected void ensureNotSharable()
      Throws IllegalStateException if isSharable() returns true
    • isSharable

      public boolean isSharable()
      Return true if the implementation is ChannelHandler.Sharable and so can be added to different ChannelPipelines.
    • handlerAdded

      public void handlerAdded(ChannelHandlerContext ctx) throws Exception
      Do nothing by default, sub-classes may override this method.
      Specified by:
      handlerAdded in interface ChannelHandler
      Throws:
      Exception
    • handlerRemoved

      public void handlerRemoved(ChannelHandlerContext ctx) throws Exception
      Do nothing by default, sub-classes may override this method.
      Specified by:
      handlerRemoved in interface ChannelHandler
      Throws:
      Exception
    • exceptionCaught

      @Deprecated public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception
      Deprecated.
      is part of ChannelInboundHandler
      Calls ChannelHandlerContext.fireExceptionCaught(Throwable) to forward to the next ChannelHandler in the ChannelPipeline. Sub-classes may override this method to change behavior.
      Specified by:
      exceptionCaught in interface ChannelHandler
      Throws:
      Exception
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.