-
public interface TransportThe transport used by aVertxinstance.- Author:
- Julien Viet
-
-
Field Summary
Fields Modifier and Type Field Description static intACCEPTOR_EVENT_LOOP_GROUPstatic intIO_EVENT_LOOP_GROUP
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel>channelFactory(boolean domainSocket)default voidconfigure(io.netty.channel.socket.DatagramChannel channel, DatagramSocketOptions options)default voidconfigure(ClientOptionsBase options, int connectTimeout, boolean domainSocket, io.netty.bootstrap.Bootstrap bootstrap)default voidconfigure(NetServerOptions options, boolean domainSocket, io.netty.bootstrap.ServerBootstrap bootstrap)default SocketAddressconvert(SocketAddress address)default SocketAddressconvert(SocketAddress address)io.netty.channel.socket.DatagramChanneldatagramChannel()io.netty.channel.socket.DatagramChanneldatagramChannel(io.netty.channel.socket.InternetProtocolFamily family)default io.netty.channel.EventLoopGroupeventLoopGroup(int type, int nThreads, ThreadFactory threadFactory, int ioRatio)io.netty.channel.IoHandlerFactoryioHandlerFactory()default booleanisAvailable()io.netty.channel.ChannelFactory<? extends io.netty.channel.ServerChannel>serverChannelFactory(boolean domainSocket)default booleansupportFileRegion()default booleansupportsDomainSockets()default ThrowableunavailabilityCause()
-
-
-
Field Detail
-
ACCEPTOR_EVENT_LOOP_GROUP
static final int ACCEPTOR_EVENT_LOOP_GROUP
- See Also:
- Constant Field Values
-
IO_EVENT_LOOP_GROUP
static final int IO_EVENT_LOOP_GROUP
- See Also:
- Constant Field Values
-
-
Method Detail
-
supportsDomainSockets
default boolean supportsDomainSockets()
-
supportFileRegion
default boolean supportFileRegion()
-
isAvailable
default boolean isAvailable()
- Returns:
- true when the transport is available.
-
unavailabilityCause
default Throwable unavailabilityCause()
- Returns:
- the error that cause the unavailability when
isAvailable()returnsnull.
-
convert
default SocketAddress convert(SocketAddress address)
-
convert
default SocketAddress convert(SocketAddress address)
-
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()
- Returns:
- a new datagram channel
-
datagramChannel
io.netty.channel.socket.DatagramChannel datagramChannel(io.netty.channel.socket.InternetProtocolFamily family)
- Returns:
- a new datagram channel
-
channelFactory
io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory(boolean domainSocket)
- Parameters:
domainSocket- whether to create a unix domain channel or a socket channel- Returns:
- the type for channel
-
serverChannelFactory
io.netty.channel.ChannelFactory<? extends io.netty.channel.ServerChannel> serverChannelFactory(boolean domainSocket)
- Parameters:
domainSocket- whether to create a server unix domain channel or a regular server socket channel- Returns:
- the type for server channel
-
configure
default void configure(io.netty.channel.socket.DatagramChannel channel, DatagramSocketOptions options)
-
configure
default void configure(ClientOptionsBase options, int connectTimeout, boolean domainSocket, io.netty.bootstrap.Bootstrap bootstrap)
-
configure
default void configure(NetServerOptions options, boolean domainSocket, io.netty.bootstrap.ServerBootstrap bootstrap)
-
-