Class TrafficCaptureHandler

  • All Implemented Interfaces:,,

    public class TrafficCaptureHandler
    Similar to the netty LoggingHandler, but it dumps the traffic into the event bus for later consumption instead of logging it right away.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void channelActive​( ctx)  
      void channelRead​( ctx, Object msg)  
      void write​( ctx, Object msg, promise)  
      • Methods inherited from class

        bind, close, connect, deregister, disconnect, flush, read
      • Methods inherited from class

        channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
      • Methods inherited from class

        ensureNotSharable, handlerAdded, handlerRemoved, isSharable
      • Methods inherited from interface

        handlerAdded, handlerRemoved
    • Constructor Detail

      • TrafficCaptureHandler

        public TrafficCaptureHandler​(EndpointContext endpointContext)
    • Method Detail

      • channelActive

        public void channelActive​( ctx)
        Specified by:
        channelActive in interface
        channelActive in class
      • channelRead

        public void channelRead​( ctx,
                                Object msg)
        Specified by:
        channelRead in interface
        channelRead in class
      • write

        public void write​( ctx,
                          Object msg,
        Specified by:
        write in interface
        write in class