Class DefaultTransportFactory
java.lang.Object
org.infinispan.hotrod.impl.transport.netty.DefaultTransportFactory
- All Implemented Interfaces:
TransportFactory
Default implementation of the
TransportFactory interface which uses epoll if available and nio otherwise.-
Field Summary
Fields inherited from interface org.infinispan.hotrod.configuration.TransportFactory
DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.netty.channel.EventLoopGroupcreateEventLoopGroup(int maxExecutors, ExecutorService executorService) Creates an event loop groupClass<? extends io.netty.channel.socket.SocketChannel>Returns the NettySocketChannelclass to use in the transport.
-
Constructor Details
-
DefaultTransportFactory
public DefaultTransportFactory()
-
-
Method Details
-
socketChannelClass
Description copied from interface:TransportFactoryReturns the NettySocketChannelclass to use in the transport.- Specified by:
socketChannelClassin interfaceTransportFactory
-
createEventLoopGroup
public io.netty.channel.EventLoopGroup createEventLoopGroup(int maxExecutors, ExecutorService executorService) Description copied from interface:TransportFactoryCreates an event loop group- Specified by:
createEventLoopGroupin interfaceTransportFactory- Parameters:
maxExecutors- the maximum number of executorsexecutorService- the executor service to use- Returns:
- an instance of Netty's
EventLoopGroup
-