Interface TransportFactory


  • public interface TransportFactory
    TransportFactory is responsible for creating Netty's SocketChannels and EventLoopGroups.
    Since:
    12.1
    Author:
    Tristan Tarrant <tristan@infinispan.org>
    • Method Detail

      • socketChannelClass

        Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass()
        Returns the Netty SocketChannel class to use in the transport.
      • createEventLoopGroup

        io.netty.channel.EventLoopGroup createEventLoopGroup​(int maxExecutors,
                                                             ExecutorService executorService)
        Creates an event loop group
        Parameters:
        maxExecutors - the maximum number of executors
        executorService - the executor service to use
        Returns:
        an instance of Netty's EventLoopGroup