Index
All Classes and Interfaces|All Packages
A
- acquire() - Method in interface com.coditory.sherlock.DistributedLock
-
Tries to acquire the lock.
- acquire() - Method in class com.coditory.sherlock.test.DistributedLockMock
- acquire(LockRequest) - Method in interface com.coditory.sherlock.DistributedLockConnector
-
Acquire a lock.
- acquire(Duration) - Method in interface com.coditory.sherlock.DistributedLock
-
Tries to acquire the lock for a given duration.
- acquire(Duration) - Method in class com.coditory.sherlock.test.DistributedLockMock
- acquiredInMemoryLock() - Static method in class com.coditory.sherlock.test.DistributedLockMock
- acquiredInMemoryLock(String) - Static method in class com.coditory.sherlock.test.DistributedLockMock
- acquiredReentrantInMemoryLock() - Static method in class com.coditory.sherlock.test.DistributedLockMock
- acquiredReentrantInMemoryLock(String) - Static method in class com.coditory.sherlock.test.DistributedLockMock
- acquireForever() - Method in interface com.coditory.sherlock.DistributedLock
-
Tries to acquire the lock without expiration date.
- acquireForever() - Method in class com.coditory.sherlock.test.DistributedLockMock
- acquireOrProlong(LockRequest) - Method in interface com.coditory.sherlock.DistributedLockConnector
-
Acquire a lock or prolong it if it was acquired by the same instance.
- acquisitions() - Method in class com.coditory.sherlock.test.DistributedLockMock
- addAnnotatedChangeSets(Object) - Method in class com.coditory.sherlock.migrator.SherlockMigratorBuilder
- addChangeSet(String, Runnable) - Method in class com.coditory.sherlock.migrator.SherlockMigratorBuilder
-
Adds change set to migration process.
B
- build() - Method in class com.coditory.sherlock.migrator.SherlockMigratorBuilder
- build() - Method in class com.coditory.sherlock.SherlockWithConnectorBuilder
- builder(Sherlock) - Static method in class com.coditory.sherlock.migrator.SherlockMigrator
C
- com.coditory.sherlock - package com.coditory.sherlock
- com.coditory.sherlock.migrator - package com.coditory.sherlock.migrator
- com.coditory.sherlock.test - package com.coditory.sherlock.test
- createLock() - Method in interface com.coditory.sherlock.Sherlock
-
Creates a distributed single-entrant lock builder.
- createLock() - Method in class com.coditory.sherlock.test.SherlockStub
- createLock(String) - Method in interface com.coditory.sherlock.Sherlock
-
Creates a single-entrant lock with default configuration.
- createOverridingLock() - Method in interface com.coditory.sherlock.Sherlock
-
Create a distributed overriding lock.
- createOverridingLock() - Method in class com.coditory.sherlock.test.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.test.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.
- DistributedLockConnector - Interface in com.coditory.sherlock
- DistributedLockMock - Class in com.coditory.sherlock.test
F
- forceAcquire(LockRequest) - Method in interface com.coditory.sherlock.DistributedLockConnector
-
Acquire a lock even if it was already acquired by someone else
- forceRelease(String) - Method in interface com.coditory.sherlock.DistributedLockConnector
-
Release a lock without checking its owner or release date.
- forceReleaseAll() - Method in interface com.coditory.sherlock.DistributedLockConnector
-
Release all locks without checking their owners or release dates.
- forceReleaseAllLocks() - Method in interface com.coditory.sherlock.Sherlock
-
Force releases all acquired locks.
- forceReleaseAllLocks() - Method in class com.coditory.sherlock.test.SherlockStub
- forceReleaseLock(String) - Method in interface com.coditory.sherlock.Sherlock
-
Force releases a lock.
G
- getId() - Method in interface com.coditory.sherlock.DistributedLock
-
Returns the lock id.
- getId() - Method in class com.coditory.sherlock.test.DistributedLockMock
I
- initialize() - Method in interface com.coditory.sherlock.DistributedLockConnector
-
Initializes underlying infrastructure for locks.
- initialize() - Method in interface com.coditory.sherlock.Sherlock
-
Initializes underlying infrastructure.
- initialize() - Method in class com.coditory.sherlock.test.SherlockStub
L
- lockStub(boolean) - Static method in class com.coditory.sherlock.test.DistributedLockMock
- lockStub(boolean, boolean) - Static method in class com.coditory.sherlock.test.DistributedLockMock
- lockStub(String, boolean) - Static method in class com.coditory.sherlock.test.DistributedLockMock
- lockStub(String, boolean, boolean) - Static method in class com.coditory.sherlock.test.DistributedLockMock
M
- migrate() - Method in class com.coditory.sherlock.migrator.SherlockMigrator
- migrate() - Method in class com.coditory.sherlock.migrator.SherlockMigratorBuilder
R
- rejectedAcquisitions() - Method in class com.coditory.sherlock.test.DistributedLockMock
- rejectedReleases() - Method in class com.coditory.sherlock.test.DistributedLockMock
- release() - Method in interface com.coditory.sherlock.DistributedLock
-
Tries to release the lock.
- release() - Method in class com.coditory.sherlock.test.DistributedLockMock
- release(String, String) - Method in interface com.coditory.sherlock.DistributedLockConnector
-
Unlock a lock if wat acquired by the same instance.
- releasedInMemoryLock() - Static method in class com.coditory.sherlock.test.DistributedLockMock
- releasedInMemoryLock(String) - Static method in class com.coditory.sherlock.test.DistributedLockMock
- releasedReentrantInMemoryLock() - Static method in class com.coditory.sherlock.test.DistributedLockMock
- releasedReentrantInMemoryLock(String) - Static method in class com.coditory.sherlock.test.DistributedLockMock
- releases() - Method in class com.coditory.sherlock.test.DistributedLockMock
- runLocked(Runnable) - Method in interface com.coditory.sherlock.DistributedLock
-
Tries to acquire the lock and releases it after action is executed.
- runLocked(Duration, Runnable) - Method in interface com.coditory.sherlock.DistributedLock
-
Acquire a lock for specific duration and release it after action is executed.
- runLocked(Duration, Supplier<? extends T>) - Method in interface com.coditory.sherlock.DistributedLock
-
Tries to acquire the lock for a given duration and releases it after action is executed.
- runLocked(Supplier<? extends T>) - Method in interface com.coditory.sherlock.DistributedLock
-
Tries to acquire the lock and releases it after action is executed.
S
- sequencedLock(String, List<Boolean>, List<Boolean>) - Static method in class com.coditory.sherlock.test.DistributedLockMock
- sequencedLock(List<Boolean>, List<Boolean>) - Static method in class com.coditory.sherlock.test.DistributedLockMock
- setMigrationId(String) - Method in class com.coditory.sherlock.migrator.SherlockMigratorBuilder
- Sherlock - Interface in com.coditory.sherlock
-
Manages distributed locks.
- SherlockMigrator - Class in com.coditory.sherlock.migrator
- SherlockMigratorBuilder - Class in com.coditory.sherlock.migrator
- SherlockStub - Class in com.coditory.sherlock.test
-
Used to stub
Sherlock
in tests. - SherlockStub() - Constructor for class com.coditory.sherlock.test.SherlockStub
- SherlockWithConnectorBuilder<T> - Class in com.coditory.sherlock
- SherlockWithConnectorBuilder() - Constructor for class com.coditory.sherlock.SherlockWithConnectorBuilder
- successfulAcquisitions() - Method in class com.coditory.sherlock.test.DistributedLockMock
- successfulReleases() - Method in class com.coditory.sherlock.test.DistributedLockMock
W
- wasAcquired() - Method in class com.coditory.sherlock.test.DistributedLockMock
- wasAcquiredAndReleased() - Method in class com.coditory.sherlock.test.DistributedLockMock
- wasAcquireInvoked() - Method in class com.coditory.sherlock.test.DistributedLockMock
- wasAcquireRejected() - Method in class com.coditory.sherlock.test.DistributedLockMock
- wasReleased() - Method in class com.coditory.sherlock.test.DistributedLockMock
- wasReleaseInvoked() - Method in class com.coditory.sherlock.test.DistributedLockMock
- wasReleaseRejected() - Method in class com.coditory.sherlock.test.DistributedLockMock
- withAcquiredLocks() - Static method in class com.coditory.sherlock.test.SherlockStub
-
Make the stub produce acquired locks by default
- withLock(DistributedLock) - Method in class com.coditory.sherlock.test.SherlockStub
-
Make the stub produce return a predefined lock.
- withLockDuration(Duration) - Method in class com.coditory.sherlock.SherlockWithConnectorBuilder
- withOwnerId(String) - Method in class com.coditory.sherlock.SherlockWithConnectorBuilder
- withOwnerIdPolicy(OwnerIdPolicy) - Method in class com.coditory.sherlock.SherlockWithConnectorBuilder
- withReleasedLocks() - Static method in class com.coditory.sherlock.test.SherlockStub
-
Make the stub produce released locks by default
All Classes and Interfaces|All Packages