net.sf.sasl.distributed.lock
Interface IMutex
- All Superinterfaces:
- Lock
- All Known Implementing Classes:
- DefaultLockSession.MutexDecorator
public interface IMutex
- extends Lock
A mutex (=mutual exclusion) is the special case of a semaphore.
A mutex has got only two states, locked and not locked. A lock can be only
held by one thread at the same time. If a lock provider supports deadlock
detection, than the provider should throw a
DeadlockException
in
case of a deadlock.
- Since:
- 0.0.1 (sasl-distributed-lock-library)
- Author:
- Philipp Förmer
Method Summary |
Object |
getLockKey()
Returns the lock key to which this mutex belongs. |
getLockKey
Object getLockKey()
- Returns the lock key to which this mutex belongs.
- Returns:
- null or non null
- Since:
- 0.0.1 (sasl-distributed-lock-library)
Copyright © 2010. All Rights Reserved.