Package org.infinispan.client.hotrod
Interface TransportFactory
public interface TransportFactory
TransportFactory is responsible for creating Netty's
SocketChannel
s and EventLoopGroup
s.- Since:
- 12.1
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.netty.channel.EventLoopGroup
createEventLoopGroup
(int maxExecutors, ExecutorService executorService) Creates an event loop groupdefault Class
<? extends io.netty.channel.socket.DatagramChannel> Returns the NettyDatagramChannel
class to use for DNS resolution.Class
<? extends io.netty.channel.socket.SocketChannel> Returns the NettySocketChannel
class to use in the transport.
-
Field Details
-
DEFAULT
-
-
Method Details
-
socketChannelClass
Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass()Returns the NettySocketChannel
class to use in the transport. -
datagramChannelClass
Returns the NettyDatagramChannel
class to use for DNS resolution. -
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
-