Class InterProcessMutexActor
java.lang.Object
org.tasktide.mutex.actor.InterProcessMutexActor
- All Implemented Interfaces:
MutexActor
- Direct Known Subclasses:
NfsMutexActor
Package private class for coordinating locks on NSF where member
nodes are unknown and dynamic. Multi-stage process
first forms host queue based on epcoh time, and host label.
Once locked, base Java is for file channel lock (process level),
and relevant methods can be synchronized from there (thread level).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final jakarta.json.bind.Jsonbprotected final jakarta.json.bind.Jsonb -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandleFirstInstance(Mutex mutex) Handle first instance of mutexMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MutexActor
acquire, acquire, fetchActiveFieldValue, getState, getStrategy, release, release, release, setState, waitForLock
-
Field Details
-
JSON
protected final jakarta.json.bind.Jsonb JSON -
PRETTY_JSON
protected final jakarta.json.bind.Jsonb PRETTY_JSON
-
-
Constructor Details
-
InterProcessMutexActor
public InterProcessMutexActor()Construct
-
-
Method Details
-
handleFirstInstance
Handle first instance of mutex- Parameters:
mutex-- Returns:
-