Uses of Class
org.drasyl.handler.connection.ConnectionConfig.Builder
-
Uses of ConnectionConfig.Builder in org.drasyl.handler.connection
Modifier and TypeMethodDescriptionabstract ConnectionConfig.Builder
ConnectionConfig.Builder.activeOpen
(boolean activeOpen) If enabled, a handshake will be issued onChannelInboundHandler.channelActive(ChannelHandlerContext)
.abstract ConnectionConfig.Builder
ConnectionConfig.Builder.alpha
(double alpha) The ALPHA smoothing factor used for congestion control algorithm to calculate the current congestion window size.abstract ConnectionConfig.Builder
ConnectionConfig.Builder.beta
(double beta) The BETA delay variance factor is used in congestion control algorithm.abstract ConnectionConfig.Builder
ConnectionConfig.Builder.clock
(ConnectionConfig.Clock clock) Defines the clock used as time source.abstract ConnectionConfig.Builder
ConnectionConfig.Builder.fs
(double fs) A constant used by the Nagle algorithm.abstract ConnectionConfig.Builder
ConnectionConfig.Builder.issSupplier
(LongSupplier issSupplier) Used to choose an initial send sequence number.abstract ConnectionConfig.Builder
ConnectionConfig.Builder.k
(int k) The K constant is used to scale the RTT variance to calculate the retransmission timeout.abstract ConnectionConfig.Builder
The minimum value allowed for the retransmission timeout.abstract ConnectionConfig.Builder
ConnectionConfig.Builder.mmsR
(int mmsR) The maximum size for a drasyl-layer message that can be received.abstract ConnectionConfig.Builder
ConnectionConfig.Builder.mmsS
(int mmsS) The maximum segment size for a drasyl-layer message that a connection may send.abstract ConnectionConfig.Builder
The maximum segment lifetime, the time a segment can exist in the network.static ConnectionConfig.Builder
ConnectionConfig.newBuilder()
abstract ConnectionConfig.Builder
ConnectionConfig.Builder.noDelay
(boolean noDelay) If enabled, small data packets are sent without delay, instead of waiting for larger packets to be filled.abstract ConnectionConfig.Builder
ConnectionConfig.Builder.overrideTimeout
(Duration overrideTimeout) Defines how long small data packets are delayed at most.abstract ConnectionConfig.Builder
ConnectionConfig.Builder.rcfBufSupplier
(Supplier<ReceiveBuffer> rcfBufSupplier) Used to create theReceiveBuffer
.abstract ConnectionConfig.Builder
ConnectionConfig.Builder.rmem
(int rmem) Defines the receive buffer size (rmem).abstract ConnectionConfig.Builder
ConnectionConfig.Builder.rtnsQSupplier
(Function<io.netty.channel.Channel, RetransmissionQueue> rtnsQSupplier) Used to create theRetransmissionQueue
.abstract ConnectionConfig.Builder
The retransmission timeout (RTO) is the amount of time that a connection waits before retransmitting a packet that has not been acknowledged.abstract ConnectionConfig.Builder
ConnectionConfig.Builder.sndBufSupplier
(Function<io.netty.channel.Channel, SendBuffer> sndBufSupplier) Used to create theSendBuffer
.abstract ConnectionConfig.Builder
ConnectionConfig.Builder.tcbSupplier
(BiFunction<ConnectionConfig, io.netty.channel.Channel, TransmissionControlBlock> tcbProvider) Used to create theTransmissionControlBlock
.abstract ConnectionConfig.Builder
ConnectionConfig.Builder.timestamps
(boolean timestamps) Enables the Timestamps option which is used for round-trip time measurements.abstract ConnectionConfig.Builder
ConnectionConfig.toBuilder()
abstract ConnectionConfig.Builder
The maximum value allowed for the retransmission timeout.abstract ConnectionConfig.Builder
ConnectionConfig.Builder.unusedPortSupplier
(IntSupplier unusedPortSupplier) abstract ConnectionConfig.Builder
ConnectionConfig.Builder.userTimeout
(Duration userTimeout) Defines the duration how long a connection waits for sent data to be acknowledged before the connection is closed.