Class ChannelFutureLogger

  • All Implemented Interfaces:
    io.netty.channel.ChannelFutureListener, io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture>, java.util.EventListener

    public class ChannelFutureLogger
    extends java.lang.Object
    implements io.netty.channel.ChannelFutureListener
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.slf4j.Logger log  
      protected java.lang.String prefix  
      • Fields inherited from interface io.netty.channel.ChannelFutureListener

        CLOSE, CLOSE_ON_FAILURE, FIRE_EXCEPTION_ON_FAILURE
    • Constructor Summary

      Constructors 
      Constructor Description
      ChannelFutureLogger​(org.slf4j.Logger log, java.lang.String prefix)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void operationComplete​(io.netty.channel.ChannelFuture future)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        protected final org.slf4j.Logger log
      • prefix

        protected final java.lang.String prefix
    • Constructor Detail

      • ChannelFutureLogger

        public ChannelFutureLogger​(org.slf4j.Logger log,
                                   java.lang.String prefix)
    • Method Detail

      • operationComplete

        public void operationComplete​(io.netty.channel.ChannelFuture future)
                               throws java.lang.Exception
        Specified by:
        operationComplete in interface io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture>
        Throws:
        java.lang.Exception