Top Inners Fields Constructors Methods
reactor.core.scheduler

pack-priv final Class SchedulerState<T>

extends Object
Class Inheritance
Imports
java.util.concurrent.ScheduledExecutorService, .ScheduledThreadPoolExecutor, .TimeUnit, reactor.core.publisher.Flux, .FluxSink, .Mono, reactor.util.annotation.Nullable

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static interface
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final T
pack-priv final T
pack-priv final Mono<Void>

Constructor Summary

AccessConstructor and Description
private
SchedulerState(T initialResource, T currentResource, Mono<Void> onDispose)

Method Summary

Modifier and TypeMethod and Description
pack-priv static <T> SchedulerState<T>
init(final T resource)

pack-priv static <T> SchedulerState<T>
transition(T initial, T next, SchedulerState.DisposeAwaiter<T> awaiter)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentResourceback to summary
pack-priv final T currentResource
initialResourceback to summary
pack-priv final T initialResource
Annotations
@Nullable
onDisposeback to summary
pack-priv final Mono<Void> onDispose

Constructor Detail

SchedulerStateback to summary
private SchedulerState(T initialResource, T currentResource, Mono<Void> onDispose)

Method Detail

initback to summary
pack-priv static <T> SchedulerState<T> init(final T resource)
transitionback to summary
pack-priv static <T> SchedulerState<T> transition(T initial, T next, SchedulerState.DisposeAwaiter<T> awaiter)
reactor.core.scheduler back to summary

pack-priv Interface SchedulerState.DisposeAwaiter<T>

Known Direct Implementers
reactor.core.scheduler.SingleScheduler, reactor.core.scheduler.ThreadPerTaskBoundedElasticScheduler, reactor.core.scheduler.BoundedElasticScheduler, reactor.core.scheduler.DelegateServiceScheduler, reactor.core.scheduler.ParallelScheduler

Method Summary

Modifier and TypeMethod and Description
public boolean
await(T resource, long timeout, TimeUnit timeUnit)

Method Detail

awaitback to summary
public boolean await(T resource, long timeout, TimeUnit timeUnit) throws InterruptedException
reactor.core.scheduler back to summary

pack-priv Class SchedulerState.DisposeAwaiterRunnable<T>

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable

Field Summary

Modifier and TypeField and Description
private final SchedulerState.DisposeAwaiter<T>
private final int
pack-priv volatile boolean
private final T
private final FluxSink<Void>
pack-priv static final ScheduledExecutorService

Constructor Summary

AccessConstructor and Description
pack-priv
DisposeAwaiterRunnable(SchedulerState.DisposeAwaiter<T> awaiter, T initial, FluxSink<Void> sink, int awaitMs)

Method Summary

Modifier and TypeMethod and Description
pack-priv static <R> void
awaitInPool(SchedulerState.DisposeAwaiter<R> awaiter, R initial, FluxSink<Void> sink, int awaitMs)

pack-priv void
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

awaiterback to summary
private final SchedulerState.DisposeAwaiter<T> awaiter
awaitMsback to summary
private final int awaitMs
cancelledback to summary
pack-priv volatile boolean cancelled
initialback to summary
private final T initial
sinkback to summary
private final FluxSink<Void> sink
TRANSITION_AWAIT_POOLback to summary
pack-priv static final ScheduledExecutorService TRANSITION_AWAIT_POOL

Constructor Detail

DisposeAwaiterRunnableback to summary
pack-priv DisposeAwaiterRunnable(SchedulerState.DisposeAwaiter<T> awaiter, T initial, FluxSink<Void> sink, int awaitMs)

Method Detail

awaitInPoolback to summary
pack-priv static <R> void awaitInPool(SchedulerState.DisposeAwaiter<R> awaiter, R initial, FluxSink<Void> sink, int awaitMs)
cancelback to summary
pack-priv void cancel()
runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override