Interface DistributedLock
- All Known Implementing Classes:
DefaultDistributedLock
public interface DistributedLock
Distributed lock.
-
Method Summary
-
Method Details
-
tryLock
boolean tryLock(long timeoutMillis) Try lock.- Parameters:
timeoutMillis- timeout millis- Returns:
- is locked or not
-
unlock
void unlock()Unlock.
-