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 |
---|---|
ChannelFactory<? extends Channel> |
channelFactory(boolean domainSocket) |
default void |
configure(ClientOptionsBase options,
boolean domainSocket,
Bootstrap bootstrap) |
default void |
configure(DatagramChannel channel,
DatagramSocketOptions options) |
default void |
configure(NetServerOptions options,
boolean domainSocket,
ServerBootstrap bootstrap) |
default SocketAddress |
convert(SocketAddress address) |
default SocketAddress |
convert(SocketAddress address) |
DatagramChannel |
datagramChannel() |
DatagramChannel |
datagramChannel(InternetProtocolFamily family) |
EventLoopGroup |
eventLoopGroup(int type,
int nThreads,
ThreadFactory threadFactory,
int ioRatio) |
default boolean |
isAvailable() |
ChannelFactory<? extends 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)
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 ratioDatagramChannel datagramChannel()
DatagramChannel datagramChannel(InternetProtocolFamily family)
ChannelFactory<? extends Channel> channelFactory(boolean domainSocket)
domainSocket
- whether to create a unix domain channel or a socket channelChannelFactory<? extends ServerChannel> serverChannelFactory(boolean domainSocket)
domainSocket
- whether to create a server unix domain channel or a regular server socket channeldefault void configure(DatagramChannel channel, DatagramSocketOptions options)
default void configure(ClientOptionsBase options, boolean domainSocket, Bootstrap bootstrap)
default void configure(NetServerOptions options, boolean domainSocket, ServerBootstrap bootstrap)
Copyright © 2024 Eclipse. All rights reserved.