public interface FlowControl
Sender.| Modifier and Type | Method and Description |
|---|---|
void |
initialize(int initialTermId,
int termBufferCapacity)
Initialize the flow control strategy
|
long |
onIdle(long nowNs,
long senderLimit)
Perform any maintenance needed by the flow control strategy and return current position
|
long |
onStatusMessage(io.aeron.protocol.StatusMessageFlyweight flyweight,
java.net.InetSocketAddress receiverAddress,
long senderLimit,
int initialTermId,
int positionBitsToShift,
long nowNs)
Update the sender flow control strategy based on a status message from the receiver.
|
long onStatusMessage(io.aeron.protocol.StatusMessageFlyweight flyweight,
java.net.InetSocketAddress receiverAddress,
long senderLimit,
int initialTermId,
int positionBitsToShift,
long nowNs)
flyweight - the Status Message contentsreceiverAddress - of the receiver.senderLimit - the current sender position limit.initialTermId - for the term buffers.positionBitsToShift - in use for the length of each term buffer.nowNs - current nano clock time (in nanoseconds). System.nanoTime()void initialize(int initialTermId,
int termBufferCapacity)
initialTermId - for the term bufferstermBufferCapacity - to use as the length of each term bufferlong onIdle(long nowNs,
long senderLimit)
nowNs - time in nanoseconds.senderLimit - for the current sender position.Copyright © 2014-2017 Real Logic Ltd. All Rights Reserved.