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 |
---|
CallIdSequence.CallIdSequenceFailFast(int maxConcurrentInvocations) |
public CallIdSequence.CallIdSequenceFailFast(int maxConcurrentInvocations)
public long next()
CallIdSequence
next
in class CallIdSequence
public long renew()
CallIdSequence
renew
in class CallIdSequence
public void complete()
complete
in class CallIdSequence
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.