Interface IoHandlerFactory


  • public interface IoHandlerFactory
    Factory for IoHandler instances.
    • Method Detail

      • newHandler

        IoHandler newHandler​(io.netty.util.concurrent.ThreadAwareExecutor ioExecutor)
        Creates a new IoHandler instance.
        Parameters:
        ioExecutor - the ThreadAwareExecutor for the IoHandler.
        Returns:
        a new IoHandler instance.
      • isChangingThreadSupported

        default boolean isChangingThreadSupported()
        Returns true if it's supported that the ThreadAwareExecutor might change its Thread during the life-time of the IoHandler that can be created via newHandler(ThreadAwareExecutor). That said even if changing the Thread is supported it must be guaranteed that the access rules specified by IoHandler are not violated.
        Returns:
        true if changing is supported, false otherwise.