Package io.github.pellse.concurrent
Class StampedLockStrategy
java.lang.Object
io.github.pellse.concurrent.StampedLockStrategy
- All Implemented Interfaces:
LockStrategy
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.pellse.concurrent.LockStrategy
LockStrategy.LockAcquisitionException -
Field Summary
Fields inherited from interface io.github.pellse.concurrent.LockStrategy
LOCK_ACQUISITION_EXCEPTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<? extends Lock<?>> reactor.core.publisher.Mono<? extends Lock<?>> voidreleaseReadLock(CoreLock.ReadLock readLock) voidreleaseWriteLock(CoreLock.WriteLock writeLock) reactor.core.publisher.Mono<? extends Lock<?>> toWriteLock(Lock<?> lock)
-
Constructor Details
-
StampedLockStrategy
public StampedLockStrategy() -
StampedLockStrategy
-
-
Method Details
-
acquireReadLock
- Specified by:
acquireReadLockin interfaceLockStrategy
-
acquireWriteLock
- Specified by:
acquireWriteLockin interfaceLockStrategy
-
toWriteLock
- Specified by:
toWriteLockin interfaceLockStrategy
-
releaseReadLock
- Specified by:
releaseReadLockin interfaceLockStrategy
-
releaseWriteLock
- Specified by:
releaseWriteLockin interfaceLockStrategy
-