public class CommandExecutionAction extends java.lang.Object implements CommandAction
| Constructor and Description |
|---|
CommandExecutionAction(com.netflix.hystrix.HystrixInvokable hystrixCommand,
MetaHolder metaHolder)
Constructor with parameters.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
execute(ExecutionType executionType)
Executes action in accordance with the given execution type.
|
java.lang.Object |
executeWithArgs(ExecutionType executionType,
java.lang.Object[] args)
Executes action with parameters in accordance with the given execution ty
|
java.lang.String |
getActionName()
Gets action name.
|
MetaHolder |
getMetaHolder() |
public CommandExecutionAction(com.netflix.hystrix.HystrixInvokable hystrixCommand,
MetaHolder metaHolder)
hystrixCommand - the hystrix command to execute.public MetaHolder getMetaHolder()
getMetaHolder in interface CommandActionpublic java.lang.Object execute(ExecutionType executionType) throws CommandActionExecutionException
CommandActionexecute in interface CommandActionexecutionType - the execution typeCommandActionExecutionExceptionpublic java.lang.Object executeWithArgs(ExecutionType executionType, java.lang.Object[] args) throws CommandActionExecutionException
CommandActionexecuteWithArgs in interface CommandActionexecutionType - the execution typeargs - the parameters of the actionCommandActionExecutionExceptionpublic java.lang.String getActionName()
getActionName in interface CommandAction