Class FillerLock

java.lang.Object
org.yamcs.parameterarchive.FillerLock

public class FillerLock extends Object
Handle locking parameter archive intervals in order to avoid different fillers filling up the same interval concurrently.

The locking is done per parameter group id

  • Constructor Details

    • FillerLock

      public FillerLock()
  • Method Details

    • try_lock

      public boolean try_lock(long interval, int pgid, Object holder)
      try to acquire the filler lock for the given interval and pgid with the given holder.

      return true if the lock could be acquired and false otherwise.

      If the holder is the same one that acquired the lock in the first place, then return true;

    • unlock

      public void unlock(long interval, int pgid)
      unlock the filler lock for the given interval and pgid
    • lockCount

      public int lockCount()
    • toString

      public String toString()
      Overrides:
      toString in class Object