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 DistributedLockcreateLock(String lockId)DistributedLockcreateLock(String lockId, Duration duration)DistributedLockcreateOverridingLock(String lockId)DistributedLockcreateOverridingLock(String lockId, Duration duration)DistributedLockcreateReentrantLock(String lockId)DistributedLockcreateReentrantLock(String lockId, Duration duration)StringgetInstanceId()DurationgetLockDuration()
-
-
-
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)
-
-