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