Interface Revocable<T>

  • All Known Implementing Classes:
    InterProcessMutex

    public interface Revocable<T>
    Specifies locks that can be revoked
    • Method Detail

      • makeRevocable

        void makeRevocable​(RevocationListener<T> listener)
        Make the lock revocable. Your listener will get called when another process/thread wants you to release the lock. Revocation is cooperative.
        Parameters:
        listener - the listener
      • makeRevocable

        void makeRevocable​(RevocationListener<T> listener,
                           java.util.concurrent.Executor executor)
        Make the lock revocable. Your listener will get called when another process/thread wants you to release the lock. Revocation is cooperative.
        Parameters:
        listener - the listener
        executor - executor for the listener