public class UnicastFlowControl extends java.lang.Object implements FlowControl
| Constructor and Description |
|---|
UnicastFlowControl() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(int initialTermId,
int termBufferCapacity)
Initialize the flow control strategy
|
long |
onIdle(long now,
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 now)
Update the sender flow control strategy based on a status message from the receiver.
|
public long onStatusMessage(io.aeron.protocol.StatusMessageFlyweight flyweight,
java.net.InetSocketAddress receiverAddress,
long senderLimit,
int initialTermId,
int positionBitsToShift,
long now)
onStatusMessage in interface FlowControlflyweight - 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.now - current nano clock time (in nanoseconds). System.nanoTime()public void initialize(int initialTermId,
int termBufferCapacity)
initialize in interface FlowControlinitialTermId - for the term bufferstermBufferCapacity - to use as the length of each term bufferpublic long onIdle(long now,
long senderLimit)
onIdle in interface FlowControlnow - time in nanoseconds.senderLimit - for the current sender position.Copyright © 2014-2017 Real Logic Ltd. All Rights Reserved.