Interface Transport
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionChannelFactory<? extends Channel> channelFactory(boolean domainSocket) default voidconfigure(DatagramChannel channel, DatagramSocketOptions options) default voiddefault voidconfigure(TcpConfig config, boolean domainSocket, ServerBootstrap bootstrap) default SocketAddressconvert(SocketAddress address) default SocketAddressconvert(SocketAddress address) ChannelFactory<? extends DatagramChannel> default EventLoopGroupeventLoopGroup(int type, int nThreads, ThreadFactory threadFactory, int ioRatio) default booleanChannelFactory<? extends ServerChannel> serverChannelFactory(boolean domainSocket) default booleandefault booleandefault Throwable
-
Field Details
-
ACCEPTOR_EVENT_LOOP_GROUP
static final int ACCEPTOR_EVENT_LOOP_GROUP- See Also:
-
IO_EVENT_LOOP_GROUP
static final int IO_EVENT_LOOP_GROUP- See Also:
-
-
Method Details
-
supportsDomainSockets
default boolean supportsDomainSockets() -
supportFileRegion
default boolean supportFileRegion() -
isAvailable
default boolean isAvailable()- Returns:
- true when the transport is available.
-
convert
-
convert
-
ioHandlerFactory
IoHandlerFactory ioHandlerFactory() -
eventLoopGroup
default EventLoopGroup eventLoopGroup(int type, int nThreads, ThreadFactory threadFactory, int ioRatio) - Parameters:
type- one ofACCEPTOR_EVENT_LOOP_GROUPorIO_EVENT_LOOP_GROUP.nThreads- the number of threads that will be used by this instance.threadFactory- the ThreadFactory to use.ioRatio- the IO ratio- Returns:
- a new event loop group
-
datagramChannel
- Returns:
- a new datagram channel
-
datagramChannelFactory
ChannelFactory<? extends DatagramChannel> datagramChannelFactory()- Returns:
- the datagram channel
-
channelFactory
- Parameters:
domainSocket- whether to create a unix domain socket channel or a TCP socket channel- Returns:
- the suitable factory for TCP channels
-
serverChannelFactory
- Parameters:
domainSocket- whether to create a unix domain server socket channel or a TCP server socket channel- Returns:
- the suitable factory for TCP server channels
-
configure
-
configure
-
configure
-