Package org.infinispan.client.hotrod
Interface TransportFactory
-
public interface TransportFactory
TransportFactory is responsible for creating Netty'sSocketChannel
s andEventLoopGroup
s.- Since:
- 12.1
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
-
Field Summary
Fields Modifier and Type Field Description static TransportFactory
DEFAULT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.netty.channel.EventLoopGroup
createEventLoopGroup(int maxExecutors, ExecutorService executorService)
Creates an event loop groupClass<? extends io.netty.channel.socket.SocketChannel>
socketChannelClass()
Returns the NettySocketChannel
class to use in the transport.
-
-
-
Field Detail
-
DEFAULT
static final TransportFactory DEFAULT
-
-
Method Detail
-
socketChannelClass
Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass()
Returns the NettySocketChannel
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 executorsexecutorService
- the executor service to use- Returns:
- an instance of Netty's
EventLoopGroup
-
-