public interface Transport
Vertx
instance.
Modifier and Type | Field and Description |
---|---|
static int |
ACCEPTOR_EVENT_LOOP_GROUP |
static int |
IO_EVENT_LOOP_GROUP |
Modifier and Type | Method and Description |
---|---|
io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> |
channelFactory(boolean domainSocket) |
default void |
configure(ClientOptionsBase options,
boolean domainSocket,
io.netty.bootstrap.Bootstrap bootstrap) |
default void |
configure(io.netty.channel.socket.DatagramChannel channel,
DatagramSocketOptions options) |
default void |
configure(NetServerOptions options,
boolean domainSocket,
io.netty.bootstrap.ServerBootstrap bootstrap) |
default SocketAddress |
convert(SocketAddress address) |
default SocketAddress |
convert(SocketAddress address) |
io.netty.channel.socket.DatagramChannel |
datagramChannel() |
io.netty.channel.socket.DatagramChannel |
datagramChannel(io.netty.channel.socket.InternetProtocolFamily family) |
io.netty.channel.EventLoopGroup |
eventLoopGroup(int type,
int nThreads,
ThreadFactory threadFactory,
int ioRatio) |
default boolean |
isAvailable() |
io.netty.channel.ChannelFactory<? extends io.netty.channel.ServerChannel> |
serverChannelFactory(boolean domainSocket) |
default boolean |
supportFileRegion() |
default boolean |
supportsDomainSockets() |
default Throwable |
unavailabilityCause() |
static final int ACCEPTOR_EVENT_LOOP_GROUP
static final int IO_EVENT_LOOP_GROUP
default boolean supportsDomainSockets()
default boolean supportFileRegion()
default boolean isAvailable()
default Throwable unavailabilityCause()
isAvailable()
returns null
.default SocketAddress convert(SocketAddress address)
default SocketAddress convert(SocketAddress address)
io.netty.channel.EventLoopGroup eventLoopGroup(int type, int nThreads, ThreadFactory threadFactory, int ioRatio)
type
- one of ACCEPTOR_EVENT_LOOP_GROUP
or IO_EVENT_LOOP_GROUP
.nThreads
- the number of threads that will be used by this instance.threadFactory
- the ThreadFactory to use.ioRatio
- the IO ratioio.netty.channel.socket.DatagramChannel datagramChannel()
io.netty.channel.socket.DatagramChannel datagramChannel(io.netty.channel.socket.InternetProtocolFamily family)
io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory(boolean domainSocket)
domainSocket
- whether to create a unix domain channel or a socket channelio.netty.channel.ChannelFactory<? extends io.netty.channel.ServerChannel> serverChannelFactory(boolean domainSocket)
domainSocket
- whether to create a server unix domain channel or a regular server socket channeldefault void configure(io.netty.channel.socket.DatagramChannel channel, DatagramSocketOptions options)
default void configure(ClientOptionsBase options, boolean domainSocket, io.netty.bootstrap.Bootstrap bootstrap)
default void configure(NetServerOptions options, boolean domainSocket, io.netty.bootstrap.ServerBootstrap bootstrap)
Copyright © 2023 Eclipse. All rights reserved.