Class LockBasedSequenceValueProvider
- java.lang.Object
-
- com.flowable.platform.engine.impl.sequence.LockBasedSequenceValueProvider
-
- All Implemented Interfaces:
SequenceValueProvider
public class LockBasedSequenceValueProvider extends Object implements SequenceValueProvider
- Author:
- Filip Hrisafov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.flowable.platform.api.sequence.SequenceValueProvider
SequenceValueProvider.Context
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutor
commandExecutor
protected CommandConfig
incrementSequenceCommandConfig
protected LockBasedSequenceValueProviderProperties
properties
-
Constructor Summary
Constructors Constructor Description LockBasedSequenceValueProvider(CommandExecutor commandExecutor, LockBasedSequenceValueProviderProperties properties)
-
-
-
Field Detail
-
commandExecutor
protected final CommandExecutor commandExecutor
-
properties
protected final LockBasedSequenceValueProviderProperties properties
-
incrementSequenceCommandConfig
protected final CommandConfig incrementSequenceCommandConfig
-
-
Constructor Detail
-
LockBasedSequenceValueProvider
public LockBasedSequenceValueProvider(CommandExecutor commandExecutor, LockBasedSequenceValueProviderProperties properties)
-
-
Method Detail
-
nextValue
public long nextValue(SequenceValueProvider.Context context)
- Specified by:
nextValue
in interfaceSequenceValueProvider
-
-