Class MutexStrategy
java.lang.Object
org.tasktide.mutex.strategy.MutexStrategy
- Direct Known Subclasses:
ElectionStrategy, FileChannelStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanApply providedMutexabstract booleanClean up providedMutexinferLeader(MutexFileType fileType) Returns the full file path of the leaderintinferPosition(Mutex mutex) Infer position ofMutexintReturn queue sizeabstract booleanRelease providedMutex
-
Constructor Details
-
MutexStrategy
-
-
Method Details
-
apply
-
release
-
cleanUp
-
inferPosition
-
inferLeader
Returns the full file path of the leader- Parameters:
fileType-- Returns:
- Optional-Path
-
queueSize
public int queueSize()Return queue size- Returns:
- queue size
-
getStrategyType
-