public enum ObservableExecutionMode extends java.lang.Enum<ObservableExecutionMode>
HystrixObservable.observe(),
lazy - HystrixObservable.toObservable().
This enum is used to specify desire execution mode.
Created by dmgcodevil.| Enum Constant and Description |
|---|
EAGER
This mode eagerly starts execution of the command the same as
HystrixCommand.queue()
and HystrixCommand.execute(). |
LAZY
This mode lazily starts execution of the command only once the
Observable is subscribed to. |
| Modifier and Type | Method and Description |
|---|---|
static ObservableExecutionMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ObservableExecutionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ObservableExecutionMode LAZY
Observable is subscribed to.public static final ObservableExecutionMode EAGER
HystrixCommand.queue()
and HystrixCommand.execute().public static ObservableExecutionMode[] values()
for (ObservableExecutionMode c : ObservableExecutionMode.values()) System.out.println(c);
public static ObservableExecutionMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null