Interface ReentrantExecutor


public interface ReentrantExecutor
  • Field Details

    • DEFAULT_TIMEOUT

      static final Duration 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

      default <T> reactor.core.publisher.Mono<T> withReadLock(reactor.core.publisher.Mono<T> mono, Duration timeout, Supplier<T> defaultValueProvider)
    • 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

      <T> reactor.core.publisher.Mono<T> withWriteLock(reactor.core.publisher.Mono<T> mono, Duration timeout, Supplier<T> defaultValueProvider)
    • create

      static ReentrantExecutor create()