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()
CallIdSequence
next
in class CallIdSequence
public long forceNext()
CallIdSequence
forceNext
in class CallIdSequence
public void complete()
complete
in class CallIdSequence
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.