ACCEPTOR_EVENT_LOOP_GROUP, IO_EVENT_LOOP_GROUP
Constructor and Description |
---|
IOUringTransport() |
Modifier and Type | Method and Description |
---|---|
ChannelFactory<? extends Channel> |
channelFactory(boolean domainSocket) |
void |
configure(ClientOptionsBase options,
boolean domainSocket,
Bootstrap bootstrap) |
void |
configure(DatagramChannel channel,
DatagramSocketOptions options) |
void |
configure(NetServerOptions options,
boolean domainSocket,
ServerBootstrap bootstrap) |
SocketAddress |
convert(SocketAddress address) |
SocketAddress |
convert(SocketAddress address) |
DatagramChannel |
datagramChannel() |
DatagramChannel |
datagramChannel(InternetProtocolFamily family) |
EventLoopGroup |
eventLoopGroup(int type,
int nThreads,
ThreadFactory threadFactory,
int ignoredIoRatio) |
static int |
getPendingFastOpenRequestsThreshold()
Return the number of of pending TFO connections in SYN-RCVD state for TCP_FASTOPEN.
|
boolean |
isAvailable() |
ChannelFactory<? extends ServerChannel> |
serverChannelFactory(boolean domainSocket) |
static void |
setPendingFastOpenRequestsThreshold(int value)
Set the number of of pending TFO connections in SYN-RCVD state for TCP_FASTOPEN
If this value goes over a certain limit the server disables all TFO connections.
|
boolean |
supportFileRegion() |
boolean |
supportsDomainSockets() |
Throwable |
unavailabilityCause() |
public static int getPendingFastOpenRequestsThreshold()
public static void setPendingFastOpenRequestsThreshold(int value)
public boolean supportsDomainSockets()
supportsDomainSockets
in interface Transport
public boolean supportFileRegion()
supportFileRegion
in interface Transport
public SocketAddress convert(SocketAddress address)
public SocketAddress convert(SocketAddress address)
public boolean isAvailable()
isAvailable
in interface Transport
public Throwable unavailabilityCause()
unavailabilityCause
in interface Transport
Transport.isAvailable()
returns null
.public EventLoopGroup eventLoopGroup(int type, int nThreads, ThreadFactory threadFactory, int ignoredIoRatio)
eventLoopGroup
in interface Transport
type
- one of Transport.ACCEPTOR_EVENT_LOOP_GROUP
or Transport.IO_EVENT_LOOP_GROUP
.nThreads
- the number of threads that will be used by this instance.threadFactory
- the ThreadFactory to use.ignoredIoRatio
- the IO ratiopublic DatagramChannel datagramChannel()
datagramChannel
in interface Transport
public DatagramChannel datagramChannel(InternetProtocolFamily family)
datagramChannel
in interface Transport
public ChannelFactory<? extends Channel> channelFactory(boolean domainSocket)
channelFactory
in interface Transport
domainSocket
- whether to create a unix domain channel or a socket channelpublic ChannelFactory<? extends ServerChannel> serverChannelFactory(boolean domainSocket)
serverChannelFactory
in interface Transport
domainSocket
- whether to create a server unix domain channel or a regular server socket channelpublic void configure(DatagramChannel channel, DatagramSocketOptions options)
public void configure(NetServerOptions options, boolean domainSocket, ServerBootstrap bootstrap)
public void configure(ClientOptionsBase options, boolean domainSocket, Bootstrap bootstrap)
Copyright © 2024 Eclipse. All rights reserved.