Class DefaultTransportFactory
- java.lang.Object
-
- org.infinispan.hotrod.impl.transport.netty.DefaultTransportFactory
-
- All Implemented Interfaces:
TransportFactory
public class DefaultTransportFactory extends Object implements TransportFactory
Default implementation of theTransportFactoryinterface which uses epoll if available and nio otherwise.
-
-
Field Summary
-
Fields inherited from interface org.infinispan.hotrod.configuration.TransportFactory
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description DefaultTransportFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.channel.EventLoopGroupcreateEventLoopGroup(int maxExecutors, ExecutorService executorService)Creates an event loop groupClass<? extends io.netty.channel.socket.SocketChannel>socketChannelClass()Returns the NettySocketChannelclass to use in the transport.
-
-
-
Method Detail
-
socketChannelClass
public Class<? extends io.netty.channel.socket.SocketChannel> 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
-
-