Interface Revocable<T>

    • 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,
                           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