public interface Transport
The transport used by a
Vertx instance.
- Author:
- Julien Viet
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionio.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory(boolean domainSocket) default voidconfigure(io.netty.channel.socket.DatagramChannel channel, DatagramSocketOptions options) default voiddefault voiddefault SocketAddressconvert(SocketAddress address) default SocketAddressconvert(SocketAddress address) io.netty.channel.socket.DatagramChanneldatagramChannel(io.netty.channel.socket.InternetProtocolFamily family) io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> default io.netty.channel.EventLoopGroupeventLoopGroup(int type, int nThreads, ThreadFactory threadFactory, int ioRatio) io.netty.channel.IoHandlerFactorydefault booleanio.netty.channel.ChannelFactory<? extends io.netty.channel.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
io.netty.channel.IoHandlerFactory ioHandlerFactory() -
eventLoopGroup
default io.netty.channel.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
io.netty.channel.socket.DatagramChannel datagramChannel(io.netty.channel.socket.InternetProtocolFamily family) - Returns:
- a new datagram channel
-
datagramChannelFactory
io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> datagramChannelFactory()- Returns:
- the datagram channel
-
channelFactory
io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory(boolean domainSocket) - Parameters:
domainSocket- whether to create a unix domain socket channel or a TCP socket channel- Returns:
- the suitable factory for TCP channels
-
serverChannelFactory
io.netty.channel.ChannelFactory<? extends io.netty.channel.ServerChannel> serverChannelFactory(boolean domainSocket) - 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
default void configure(io.netty.channel.socket.DatagramChannel channel, DatagramSocketOptions options) -
configure
default void configure(TcpConfig config, boolean domainSocket, io.netty.bootstrap.Bootstrap bootstrap) -
configure
default void configure(TcpConfig config, boolean domainSocket, io.netty.bootstrap.ServerBootstrap bootstrap)
-