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<?>> void
releaseReadLock
(CoreLock.ReadLock readLock) void
releaseWriteLock
(CoreLock.WriteLock writeLock) reactor.core.publisher.Mono
<? extends Lock<?>> toWriteLock
(Lock<?> lock)
-
Constructor Details
-
StampedLockStrategy
public StampedLockStrategy() -
StampedLockStrategy
-
-
Method Details
-
acquireReadLock
- Specified by:
acquireReadLock
in interfaceLockStrategy
-
acquireWriteLock
- Specified by:
acquireWriteLock
in interfaceLockStrategy
-
toWriteLock
- Specified by:
toWriteLock
in interfaceLockStrategy
-
releaseReadLock
- Specified by:
releaseReadLock
in interfaceLockStrategy
-
releaseWriteLock
- Specified by:
releaseWriteLock
in interfaceLockStrategy
-