Class LockBasedSequenceValueProviderProperties
- java.lang.Object
-
- com.flowable.platform.engine.impl.sequence.LockBasedSequenceValueProviderProperties
-
public class LockBasedSequenceValueProviderProperties extends Object
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected Duration
forceAcquireAfter
The amount of time after the last sequence lock acquire time the lock will be forcefully acquired.protected Duration
pollRate
The poll rate for checking if the sequence lock has been released.protected Duration
waitTime
The amount of time to wait for the sequence lock to be released.
-
Constructor Summary
Constructors Constructor Description LockBasedSequenceValueProviderProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Duration
getForceAcquireAfter()
Duration
getPollRate()
Duration
getWaitTime()
void
setForceAcquireAfter(Duration forceAcquireAfter)
void
setPollRate(Duration pollRate)
void
setWaitTime(Duration waitTime)
-
-
-
Field Detail
-
pollRate
protected Duration pollRate
The poll rate for checking if the sequence lock has been released.
-
forceAcquireAfter
protected Duration forceAcquireAfter
The amount of time after the last sequence lock acquire time the lock will be forcefully acquired. This means that if for some reason another node did not release the lock properly because it crashed another node will be able to acquire the lock.
-
waitTime
protected Duration waitTime
The amount of time to wait for the sequence lock to be released. If a lock cannot be acquired after this period an exception is throw.
-
-
Method Detail
-
getPollRate
public Duration getPollRate()
-
setPollRate
public void setPollRate(Duration pollRate)
-
getForceAcquireAfter
public Duration getForceAcquireAfter()
-
setForceAcquireAfter
public void setForceAcquireAfter(Duration forceAcquireAfter)
-
getWaitTime
public Duration getWaitTime()
-
setWaitTime
public void setWaitTime(Duration waitTime)
-
-