A C G R S W 
All Classes All Packages

A

acquire() - Method in interface com.coditory.sherlock.reactor.ReactorDistributedLock
Try to acquire the lock.
acquire() - Method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
 
acquire(Duration) - Method in interface com.coditory.sherlock.reactor.ReactorDistributedLock
Try to acquire the lock for a given duration.
acquire(Duration) - Method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
 
acquireAndExecute(Duration, Supplier<Mono<T>>) - Method in interface com.coditory.sherlock.reactor.ReactorDistributedLock
Acquire a lock for a given duration and release it after action is executed.
acquireAndExecute(Supplier<Mono<T>>) - Method in interface com.coditory.sherlock.reactor.ReactorDistributedLock
Acquire a lock and release it after action is executed.
acquireForever() - Method in interface com.coditory.sherlock.reactor.ReactorDistributedLock
Try to acquire the lock without expiring date.
acquireForever() - Method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
 
acquireForeverAndExecute(Supplier<Mono<T>>) - Method in interface com.coditory.sherlock.reactor.ReactorDistributedLock
Acquire a lock without expiration time and release it after action is executed.
acquireInvocations() - Method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
 
alwaysAcquiredLock(String) - Static method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
Create a lock that can be never acquired.
alwaysReleasedLock(String) - Static method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
Create a lock that can be always acquired.
aquireSuccesses() - Method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
 

C

com.coditory.sherlock.reactor - package com.coditory.sherlock.reactor
 
com.coditory.sherlock.reactor.test - package com.coditory.sherlock.reactor.test
 
createLock(String) - Method in interface com.coditory.sherlock.reactor.ReactorSherlock
Create a distributed lock.
createLock(String) - Method in class com.coditory.sherlock.reactor.test.ReactorSherlockStub
 
createLock(String, Duration) - Method in interface com.coditory.sherlock.reactor.ReactorSherlock
Create a lock.
createLock(String, Duration) - Method in class com.coditory.sherlock.reactor.test.ReactorSherlockStub
 
createOverridingLock(String) - Method in interface com.coditory.sherlock.reactor.ReactorSherlock
Create a distributed overriding lock.
createOverridingLock(String) - Method in class com.coditory.sherlock.reactor.test.ReactorSherlockStub
 
createOverridingLock(String, Duration) - Method in interface com.coditory.sherlock.reactor.ReactorSherlock
Create a distributed overriding lock.
createOverridingLock(String, Duration) - Method in class com.coditory.sherlock.reactor.test.ReactorSherlockStub
 
createReentrantLock(String) - Method in interface com.coditory.sherlock.reactor.ReactorSherlock
Create a distributed reentrant lock.
createReentrantLock(String) - Method in class com.coditory.sherlock.reactor.test.ReactorSherlockStub
 
createReentrantLock(String, Duration) - Method in interface com.coditory.sherlock.reactor.ReactorSherlock
Create a distributed reentrant lock.
createReentrantLock(String, Duration) - Method in class com.coditory.sherlock.reactor.test.ReactorSherlockStub
 

G

getId() - Method in interface com.coditory.sherlock.reactor.ReactorDistributedLock
Return the lock id.
getId() - Method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
 
getLockDuration() - Method in interface com.coditory.sherlock.reactor.ReactorSherlock
 
getLockDuration() - Method in class com.coditory.sherlock.reactor.test.ReactorSherlockStub
 
getOwnerId() - Method in interface com.coditory.sherlock.reactor.ReactorSherlock
 
getOwnerId() - Method in class com.coditory.sherlock.reactor.test.ReactorSherlockStub
 

R

ReactorDistributedLock - Interface in com.coditory.sherlock.reactor
A lock for distributed environment consisting of multiple application instances.
ReactorDistributedLockMock - Class in com.coditory.sherlock.reactor.test
Use it to mock ReactorDistributedLock in tests.
reactorSherlock(ReactiveSherlock) - Static method in interface com.coditory.sherlock.reactor.ReactorSherlock
Maps reactive sherlock to a one using Reactor's Mono and Flux
ReactorSherlock - Interface in com.coditory.sherlock.reactor
Creates and manages reactive distributed locks with reactor api.
ReactorSherlockStub - Class in com.coditory.sherlock.reactor.test
Use to stub ReactorSherlock in tests.
ReactorSherlockStub() - Constructor for class com.coditory.sherlock.reactor.test.ReactorSherlockStub
 
release() - Method in interface com.coditory.sherlock.reactor.ReactorDistributedLock
Release the lock
release() - Method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
 
releaseAndExecute(Supplier<Mono<T>>) - Method in interface com.coditory.sherlock.reactor.ReactorDistributedLock
Run the action when lock is released
releaseInvocations() - Method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
 
releaseSuccesses() - Method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
 

S

sequencedLock(String, List<Boolean>) - Static method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
Create a lock returning a sequence of results for acquiring.
sequencedLock(String, List<Boolean>, List<Boolean>) - Static method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
Create a lock returning a sequence of results for acquiring and releasing.
singleStateLock(String, boolean) - Static method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
Create always released lock if released parameter is true, otherwise always acquired lock is returned

W

wasAcquired() - Method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
 
wasAcquiredAndReleased() - Method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
 
wasAcquireInvoked() - Method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
 
wasAcquireRejected() - Method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
 
wasReleased() - Method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
 
wasReleaseInvoked() - Method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
 
wasReleaseRejected() - Method in class com.coditory.sherlock.reactor.test.ReactorDistributedLockMock
 
withAcquiredLocks() - Static method in class com.coditory.sherlock.reactor.test.ReactorSherlockStub
Make the stub produce acquired locks by default
withLock(ReactorDistributedLock) - Method in class com.coditory.sherlock.reactor.test.ReactorSherlockStub
Make the stub produce return a predefined lock.
withLockDuration(Duration) - Method in class com.coditory.sherlock.reactor.test.ReactorSherlockStub
Make the stub produce locks with given lock duration
withOwnerId(String) - Method in class com.coditory.sherlock.reactor.test.ReactorSherlockStub
Make the stub produce locks with given application instance id
withReleasedLocks() - Static method in class com.coditory.sherlock.reactor.test.ReactorSherlockStub
Make the stub produce released locks by default
A C G R S W 
All Classes All Packages