public class CommandExecutor
extends java.lang.Object
HystrixExecutable or HystrixObservable for specified execution type:
ExecutionType.SYNCHRONOUS -> HystrixExecutable.execute()
ExecutionType.ASYNCHRONOUS -> HystrixExecutable.queue()
ExecutionType.OBSERVABLE -> depends on specify observable execution mode:
ObservableExecutionMode.EAGER - HystrixObservable.observe(),
ObservableExecutionMode.LAZY - HystrixObservable.toObservable().| Constructor and Description |
|---|
CommandExecutor() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
execute(com.netflix.hystrix.HystrixInvokable invokable,
ExecutionType executionType,
MetaHolder metaHolder)
Calls a method of
HystrixExecutable in accordance with specified execution type. |
public static java.lang.Object execute(com.netflix.hystrix.HystrixInvokable invokable,
ExecutionType executionType,
MetaHolder metaHolder)
throws java.lang.RuntimeException
HystrixExecutable in accordance with specified execution type.invokable - HystrixInvokablemetaHolder - MetaHolderjava.lang.RuntimeException