net.sf.sasl.distributed.lock
Interface ILockProvider
- All Known Implementing Classes:
- HazelcastLockProvider
public interface ILockProvider
Interface defines methods that a lock provider must offer. The implementation
of the interface must be thread safe.
- Since:
- 0.0.1 (sasl-distributed-lock-library)
- Author:
- Philipp Förmer
Method Summary |
IMutex |
acquireMutex(Object lockKey)
Acquires a mutex for the given lock key at the lock provider and returns
it. |
acquireMutex
IMutex acquireMutex(Object lockKey)
- Acquires a mutex for the given lock key at the lock provider and returns
it.
- Parameters:
lockKey
- null or non null
- Returns:
- non null
- Since:
- 0.0.1 (sasl-distributed-lock-library)
Copyright © 2010. All Rights Reserved.