Package io.github.pellse.concurrent
Interface ReentrantExecutor
public interface ReentrantExecutor
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ReentrantExecutor
create()
default <T> reactor.core.publisher.Mono
<T> withReadLock
(Function<ReentrantExecutor.WriteLockExecutor<T>, reactor.core.publisher.Mono<T>> writeLockMonoFunction) <T> reactor.core.publisher.Mono
<T> withReadLock
(Function<ReentrantExecutor.WriteLockExecutor<T>, reactor.core.publisher.Mono<T>> writeLockMonoFunction, Duration timeout, Supplier<T> defaultValueProvider) default <T> reactor.core.publisher.Mono
<T> withReadLock
(Function<ReentrantExecutor.WriteLockExecutor<T>, reactor.core.publisher.Mono<T>> writeLockMonoFunction, Supplier<T> defaultValueProvider) default <T> reactor.core.publisher.Mono
<T> withReadLock
(reactor.core.publisher.Mono<T> mono) default <T> reactor.core.publisher.Mono
<T> withReadLock
(reactor.core.publisher.Mono<T> mono, Duration timeout, Supplier<T> defaultValueProvider) default <T> reactor.core.publisher.Mono
<T> withReadLock
(reactor.core.publisher.Mono<T> mono, Supplier<T> defaultValueProvider) default <T> reactor.core.publisher.Mono
<T> withWriteLock
(reactor.core.publisher.Mono<T> mono) <T> reactor.core.publisher.Mono
<T> withWriteLock
(reactor.core.publisher.Mono<T> mono, Duration timeout, Supplier<T> defaultValueProvider) default <T> reactor.core.publisher.Mono
<T> withWriteLock
(reactor.core.publisher.Mono<T> mono, Supplier<T> defaultValueProvider)
-
Field Details
-
DEFAULT_TIMEOUT
-
-
Method Details
-
withReadLock
default <T> reactor.core.publisher.Mono<T> withReadLock(reactor.core.publisher.Mono<T> mono) -
withReadLock
default <T> reactor.core.publisher.Mono<T> withReadLock(reactor.core.publisher.Mono<T> mono, Supplier<T> defaultValueProvider) -
withReadLock
-
withReadLock
default <T> reactor.core.publisher.Mono<T> withReadLock(Function<ReentrantExecutor.WriteLockExecutor<T>, reactor.core.publisher.Mono<T>> writeLockMonoFunction) -
withReadLock
default <T> reactor.core.publisher.Mono<T> withReadLock(Function<ReentrantExecutor.WriteLockExecutor<T>, reactor.core.publisher.Mono<T>> writeLockMonoFunction, Supplier<T> defaultValueProvider) -
withWriteLock
default <T> reactor.core.publisher.Mono<T> withWriteLock(reactor.core.publisher.Mono<T> mono) -
withWriteLock
default <T> reactor.core.publisher.Mono<T> withWriteLock(reactor.core.publisher.Mono<T> mono, Supplier<T> defaultValueProvider) -
withReadLock
<T> reactor.core.publisher.Mono<T> withReadLock(Function<ReentrantExecutor.WriteLockExecutor<T>, reactor.core.publisher.Mono<T>> writeLockMonoFunction, Duration timeout, Supplier<T> defaultValueProvider) -
withWriteLock
-
create
-