Package org.yamcs.parameterarchive
Class FillerLock
java.lang.Object
org.yamcs.parameterarchive.FillerLock
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
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
-