A C D F G I L M O R S W 
All Classes All Packages

A

acquire() - Method in interface com.coditory.sherlock.DistributedLock
Try to acquire the lock.
acquire() - Method in class com.coditory.sherlock.DistributedLockMock
 
acquire(Duration) - Method in interface com.coditory.sherlock.DistributedLock
Try to acquire the lock for a given duration.
acquire(Duration) - Method in class com.coditory.sherlock.DistributedLockMock
 
acquireAndExecute(Runnable) - Method in interface com.coditory.sherlock.DistributedLock
Acquire a lock and release it after action is executed.
acquireAndExecute(Duration, Runnable) - Method in interface com.coditory.sherlock.DistributedLock
Acquire a lock for specific duration and release it after action is executed.
acquiredInMemoryLock() - Static method in class com.coditory.sherlock.DistributedLockMock
 
acquiredInMemoryLock(String) - Static method in class com.coditory.sherlock.DistributedLockMock
 
acquiredReentrantInMemoryLock() - Static method in class com.coditory.sherlock.DistributedLockMock
 
acquiredReentrantInMemoryLock(String) - Static method in class com.coditory.sherlock.DistributedLockMock
 
acquireForever() - Method in interface com.coditory.sherlock.DistributedLock
Try to acquire the lock without expiring date.
acquireForever() - Method in class com.coditory.sherlock.DistributedLockMock
 
acquireForeverAndExecute(Runnable) - Method in interface com.coditory.sherlock.DistributedLock
Acquire a lock for specific duration and release it after action is executed.
acquisitions() - Method in class com.coditory.sherlock.DistributedLockMock
 
addChangeSet(String, Runnable) - Method in class com.coditory.sherlock.SherlockMigrator
Adds change set to migration process.

C

com.coditory.sherlock - package com.coditory.sherlock
 
createLock() - Method in interface com.coditory.sherlock.Sherlock
Creates a distributed lock.
createLock() - Method in class com.coditory.sherlock.SherlockStub
 
createLock(String) - Method in interface com.coditory.sherlock.Sherlock
Creates a lock with default configuration.
createOverridingLock() - Method in interface com.coditory.sherlock.Sherlock
Create a distributed overriding lock.
createOverridingLock() - Method in class com.coditory.sherlock.SherlockStub
 
createOverridingLock(String) - Method in interface com.coditory.sherlock.Sherlock
Creates an overriding lock with default configuration.
createReentrantLock() - Method in interface com.coditory.sherlock.Sherlock
Creates a distributed reentrant lock.
createReentrantLock() - Method in class com.coditory.sherlock.SherlockStub
 
createReentrantLock(String) - Method in interface com.coditory.sherlock.Sherlock
Creates a reentrant lock with default configuration.

D

DistributedLock - Interface in com.coditory.sherlock
A distributed lock.
DistributedLock.AcquireAndExecuteResult - Class in com.coditory.sherlock
 
DistributedLock.ReleaseAndExecuteResult - Class in com.coditory.sherlock
 
DistributedLockMock - Class in com.coditory.sherlock
 

F

forceReleaseAllLocks() - Method in interface com.coditory.sherlock.Sherlock
Force releases all acquired locks.
forceReleaseAllLocks() - Method in class com.coditory.sherlock.SherlockStub
 
forceReleaseLock(String) - Method in interface com.coditory.sherlock.Sherlock
Force releases a lock.

G

getId() - Method in interface com.coditory.sherlock.DistributedLock
Return the lock id.
getId() - Method in class com.coditory.sherlock.DistributedLockMock
 

I

initialize() - Method in interface com.coditory.sherlock.Sherlock
Initializes underlying infrastructure.
initialize() - Method in class com.coditory.sherlock.SherlockStub
 
isAcquired() - Method in class com.coditory.sherlock.DistributedLock.AcquireAndExecuteResult
 
isMigrated() - Method in class com.coditory.sherlock.SherlockMigrator.MigrationResult
 

L

lockStub(boolean) - Static method in class com.coditory.sherlock.DistributedLockMock
 
lockStub(boolean, boolean) - Static method in class com.coditory.sherlock.DistributedLockMock
 
lockStub(String, boolean) - Static method in class com.coditory.sherlock.DistributedLockMock
 
lockStub(String, boolean, boolean) - Static method in class com.coditory.sherlock.DistributedLockMock
 

M

migrate() - Method in class com.coditory.sherlock.SherlockMigrator
Runs the migration process.

O

onFinish(Runnable) - Method in class com.coditory.sherlock.SherlockMigrator.MigrationResult
Executes the action when migration process finishes.
onRejected(Runnable) - Method in class com.coditory.sherlock.SherlockMigrator.MigrationResult
Executes the action when migration lock was not acquired.

R

rejectedAcquisitions() - Method in class com.coditory.sherlock.DistributedLockMock
 
rejectedReleases() - Method in class com.coditory.sherlock.DistributedLockMock
 
release() - Method in interface com.coditory.sherlock.DistributedLock
Try to release the lock.
release() - Method in class com.coditory.sherlock.DistributedLockMock
 
releaseAndExecute(Runnable) - Method in interface com.coditory.sherlock.DistributedLock
Run the action if lock is released.
releasedInMemoryLock() - Static method in class com.coditory.sherlock.DistributedLockMock
 
releasedInMemoryLock(String) - Static method in class com.coditory.sherlock.DistributedLockMock
 
releasedReentrantInMemoryLock() - Static method in class com.coditory.sherlock.DistributedLockMock
 
releasedReentrantInMemoryLock(String) - Static method in class com.coditory.sherlock.DistributedLockMock
 
releases() - Method in class com.coditory.sherlock.DistributedLockMock
 

S

sequencedLock(String, List<Boolean>, List<Boolean>) - Static method in class com.coditory.sherlock.DistributedLockMock
 
sequencedLock(List<Boolean>, List<Boolean>) - Static method in class com.coditory.sherlock.DistributedLockMock
 
Sherlock - Interface in com.coditory.sherlock
Manages distributed locks.
SherlockMigrator - Class in com.coditory.sherlock
Migration mechanism based on Sherlock distributed locks.
SherlockMigrator(Sherlock) - Constructor for class com.coditory.sherlock.SherlockMigrator
 
SherlockMigrator(String, Sherlock) - Constructor for class com.coditory.sherlock.SherlockMigrator
 
SherlockMigrator.MigrationResult - Class in com.coditory.sherlock
 
SherlockStub - Class in com.coditory.sherlock
Used to stub Sherlock in tests.
SherlockStub() - Constructor for class com.coditory.sherlock.SherlockStub
 
successfulAcquisitions() - Method in class com.coditory.sherlock.DistributedLockMock
 
successfulReleases() - Method in class com.coditory.sherlock.DistributedLockMock
 

W

wasAcquired() - Method in class com.coditory.sherlock.DistributedLockMock
 
wasAcquiredAndReleased() - Method in class com.coditory.sherlock.DistributedLockMock
 
wasAcquireInvoked() - Method in class com.coditory.sherlock.DistributedLockMock
 
wasAcquireRejected() - Method in class com.coditory.sherlock.DistributedLockMock
 
wasReleased() - Method in class com.coditory.sherlock.DistributedLockMock
 
wasReleaseInvoked() - Method in class com.coditory.sherlock.DistributedLockMock
 
wasReleaseRejected() - Method in class com.coditory.sherlock.DistributedLockMock
 
withAcquiredLocks() - Static method in class com.coditory.sherlock.SherlockStub
Make the stub produce acquired locks by default
withLock(DistributedLock) - Method in class com.coditory.sherlock.SherlockStub
Make the stub produce return a predefined lock.
withReleasedLocks() - Static method in class com.coditory.sherlock.SherlockStub
Make the stub produce released locks by default
A C D F G I L M O R S W 
All Classes All Packages