Class WireLoggingInitializer

    • Constructor Summary

      Constructor Description
      WireLoggingInitializer​(java.lang.String loggerName, LogLevel logLevel, java.util.function.BooleanSupplier logUserData)
      Create an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init​( channel)
      Configures the passed Channel.
      • Methods inherited from class java.lang.Object

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

      • WireLoggingInitializer

        public WireLoggingInitializer​(java.lang.String loggerName,
                                      LogLevel logLevel,
                                      java.util.function.BooleanSupplier logUserData)
        Create an instance.
        loggerName - The logger name to use for log wire events.
        logLevel - The level to log at.
        logUserData - true to log user data. false to not log user data.
    • Method Detail

      • init

        public void init​( channel)
        Description copied from interface: ChannelInitializer
        Configures the passed Channel.

        Typically, an initializer should add handlers to the channel at the end. This makes it possible for the code using the initializer to create the order of the handlers in the pipeline.

        Specified by:
        init in interface ChannelInitializer
        channel - Netty Channel.