public final class CallIdSequenceWithBackpressure extends AbstractCallIdSequence
CallIdSequence
that provides backpressure by taking
the number of in-flight operations into account when before creating a new call-id.
It is possible to temporarily create more concurrent invocations than the declared capacity due to:
Constructor and Description |
---|
CallIdSequenceWithBackpressure(int maxConcurrentInvocations,
long backoffTimeoutMs) |
Modifier and Type | Method and Description |
---|---|
protected void |
handleNoSpaceLeft() |
complete, concurrentInvocations, forceNext, getLastCallId, getMaxConcurrentInvocations, hasSpace, next
public CallIdSequenceWithBackpressure(int maxConcurrentInvocations, long backoffTimeoutMs)
protected void handleNoSpaceLeft()
handleNoSpaceLeft
in class AbstractCallIdSequence
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.