public static final class CallIdSequence.CallIdSequenceFailFast extends CallIdSequence
CallIdSequence that provided backpressure by taking
the number in flight operations into account when a call-id needs to be determined.
It is possible to temporary exceed the capacity:
- due to system operations
- due to racy nature of checking if space is available and getting the next sequence.CallIdSequence.CallIdSequenceFailFast| Constructor and Description |
|---|
CallIdSequenceFailFast(int maxConcurrentInvocations) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete() |
long |
forceNext()
Creates the call id without applying any backpressure
|
long |
next()
Creates the next call-id.
|
public CallIdSequenceFailFast(int maxConcurrentInvocations)
public long next()
CallIdSequencenext in class CallIdSequencepublic long forceNext()
CallIdSequenceforceNext in class CallIdSequencepublic void complete()
complete in class CallIdSequenceCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.