Interface Revocable<T>
-
- All Known Implementing Classes:
InterProcessMutex
public interface Revocable<T>Specifies locks that can be revoked
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmakeRevocable(RevocationListener<T> listener)Make the lock revocable.voidmakeRevocable(RevocationListener<T> listener, java.util.concurrent.Executor executor)Make the lock revocable.
-
-
-
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 listenerexecutor- executor for the listener
-
-