public abstract class Reactors
extends java.lang.Object
| Constructor and Description |
|---|
Reactors() |
| Modifier and Type | Method and Description |
|---|---|
static ReactorSpec |
reactor()
Create a new
ReactorSpec to configure a Reactor. |
static Reactor |
reactor(Environment env)
Create a new
Reactor using the given Environment. |
static Reactor |
reactor(Environment env,
Dispatcher dispatcher)
|
static Reactor |
reactor(Environment env,
java.lang.String dispatcher)
Create a new
Reactor using the given Environment and dispatcher name. |
static <T> void |
schedule(Consumer<T> consumer,
T data,
Observable observable)
Deprecated.
@since 1.1
|
public static ReactorSpec reactor()
ReactorSpec to configure a Reactor.public static Reactor reactor(Environment env)
Reactor using the given Environment.env - The Environment to use.Reactorpublic static Reactor reactor(Environment env, java.lang.String dispatcher)
Reactor using the given Environment and dispatcher name.env - The Environment to use.dispatcher - The name of the Dispatcher to use.Reactorpublic static Reactor reactor(Environment env, Dispatcher dispatcher)
env - The Environment to use.dispatcher - The Dispatcher to use.Reactor@Deprecated public static <T> void schedule(Consumer<T> consumer, T data, Observable observable)
T - The type of the data.consumer - The Consumer to invoke.data - The data to pass to the consumer.observable - The Observable that will be used to invoke the Consumer