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)
Perform any maintenance needed by the flow control strategy and return current position
|
long |
onStatusMessage(int termId,
int termOffset,
int receiverWindowLength,
java.net.InetSocketAddress address)
Update the sender flow control strategy based on a status message from the receiver.
|
public long onStatusMessage(int termId,
int termOffset,
int receiverWindowLength,
java.net.InetSocketAddress address)
onStatusMessage in interface FlowControltermId - currently active for the receiver.termOffset - within the current active term for the receiver.receiverWindowLength - supported by the receiver.address - of the receiver.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)
onIdle in interface FlowControlnow - time in nanoseconds.Copyright © 2014 - 2016 Real Logic Ltd. All Rights Reserved.