Interface FencedLock

  • All Superinterfaces:
    AutoCloseable
    All Known Implementing Classes:
    DBFencedLock

    public interface FencedLock
    extends AutoCloseable
    Represents a named fenced lock, where the getCurrentToken() can be passed on to down stream logic, which can keep track of the token value to identify if a timed out lock is being used to request logic.
    The fence locking concept is described here https://martin.kleppmann.com/2016/02/08/how-to-do-distributed-locking.html