Class InterProcessMutexActor

java.lang.Object
org.tasktide.mutex.actor.InterProcessMutexActor
All Implemented Interfaces:
MutexActor
Direct Known Subclasses:
NfsMutexActor

public abstract class InterProcessMutexActor extends Object implements MutexActor
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 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

      public boolean handleFirstInstance(Mutex mutex)
      Handle first instance of mutex
      Parameters:
      mutex -
      Returns: