Package com.coditory.sherlock
Interface Sherlock
-
- All Known Implementing Classes:
SherlockStub
public interface Sherlock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DistributedLock
createLock(String lockId)
DistributedLock
createLock(String lockId, Duration duration)
DistributedLock
createOverridingLock(String lockId)
DistributedLock
createOverridingLock(String lockId, Duration duration)
DistributedLock
createReentrantLock(String lockId)
DistributedLock
createReentrantLock(String lockId, Duration duration)
String
getInstanceId()
Duration
getLockDuration()
-
-
-
Method Detail
-
getInstanceId
String getInstanceId()
-
getLockDuration
Duration getLockDuration()
-
createReentrantLock
DistributedLock createReentrantLock(String lockId)
-
createReentrantLock
DistributedLock createReentrantLock(String lockId, Duration duration)
-
createLock
DistributedLock createLock(String lockId)
-
createLock
DistributedLock createLock(String lockId, Duration duration)
-
createOverridingLock
DistributedLock createOverridingLock(String lockId)
-
createOverridingLock
DistributedLock createOverridingLock(String lockId, Duration duration)
-
-