public class TaggedMulticastFlowControl extends AbstractMinMulticastFlowControl
Flow control is set to minimum of tracked tagged receivers.
Tracking of tagged receivers is done as long as they continue to send Status Messages. Once SMs stop, the receiver tracking for that receiver will timeout after a given number of nanoseconds.
Modifier and Type | Field and Description |
---|---|
static String |
FC_PARAM_VALUE
URI param value to identify this
FlowControl strategy. |
Constructor and Description |
---|
TaggedMulticastFlowControl() |
Modifier and Type | Method and Description |
---|---|
long |
onStatusMessage(StatusMessageFlyweight flyweight,
InetSocketAddress receiverAddress,
long senderLimit,
int initialTermId,
int positionBitsToShift,
long timeNs)
Update the sender flow control strategy based on a status message from the receiver.
|
groupMinSize, groupTag, hasGroupTag, hasRequiredReceivers, initialize, onIdle, processStatusMessage, receiverTimeoutNs
public static final String FC_PARAM_VALUE
FlowControl
strategy.public long onStatusMessage(StatusMessageFlyweight flyweight, InetSocketAddress receiverAddress, long senderLimit, int initialTermId, int positionBitsToShift, long timeNs)
flyweight
- over the status message received.receiverAddress
- of the receiver.senderLimit
- the current sender position limit.initialTermId
- for the term buffers.positionBitsToShift
- in use for the length of each term buffer.timeNs
- current time (in nanoseconds).Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.