public class HystrixCommandBuilder
extends java.lang.Object
| Constructor and Description |
|---|
HystrixCommandBuilder() |
| Modifier and Type | Method and Description |
|---|---|
HystrixCommandBuilder |
cacheRemoveInvocationContext(CacheInvocationContext<CacheRemove> pCacheRemoveInvocationContext)
Sets CacheRemove invocation context, see
CacheInvocationContext and CacheRemove. |
HystrixCommandBuilder |
cacheResultInvocationContext(CacheInvocationContext<CacheResult> pCacheResultInvocationContext)
Sets CacheResult invocation context, see
CacheInvocationContext and CacheResult. |
HystrixCommandBuilder |
collapsedRequests(java.util.Collection<com.netflix.hystrix.HystrixCollapser.CollapsedRequest<java.lang.Object,java.lang.Object>> pCollapsedRequests)
Sets collapsed requests.
|
HystrixCommandBuilder |
commandActions(CommandActions pCommandActions)
Sets command actions
CommandActions. |
HystrixCommandBuilder |
commandProperties(java.util.Map<java.lang.String,java.lang.Object> pCommandProperties)
Sets command properties.
|
HystrixCommandBuilder |
executionType(ExecutionType pExecutionType)
Sets execution type, see
ExecutionType. |
CacheInvocationContext<CacheRemove> |
getCacheRemoveInvocationContext() |
CacheInvocationContext<CacheResult> |
getCacheResultInvocationContext() |
java.util.Collection<com.netflix.hystrix.HystrixCollapser.CollapsedRequest<java.lang.Object,java.lang.Object>> |
getCollapsedRequests() |
CommandActions |
getCommandActions() |
java.util.Map<java.lang.String,java.lang.Object> |
getCommandProperties() |
ExecutionType |
getExecutionType() |
java.lang.Class<? extends java.lang.Throwable>[] |
getIgnoreExceptions() |
CommandSetterBuilder |
getSetterBuilder() |
HystrixCommandBuilder |
ignoreExceptions(java.lang.Class<? extends java.lang.Throwable>[] pIgnoreExceptions)
Sets exceptions that should be ignored and wrapped to throw in
HystrixBadRequestException. |
HystrixCommandBuilder |
setterBuilder(CommandSetterBuilder pSetterBuilder)
Sets the builder to create
HystrixCommand.Setter. |
public CommandSetterBuilder getSetterBuilder()
public CommandActions getCommandActions()
public java.util.Map<java.lang.String,java.lang.Object> getCommandProperties()
public CacheInvocationContext<CacheResult> getCacheResultInvocationContext()
public CacheInvocationContext<CacheRemove> getCacheRemoveInvocationContext()
public java.util.Collection<com.netflix.hystrix.HystrixCollapser.CollapsedRequest<java.lang.Object,java.lang.Object>> getCollapsedRequests()
public java.lang.Class<? extends java.lang.Throwable>[] getIgnoreExceptions()
public ExecutionType getExecutionType()
public HystrixCommandBuilder setterBuilder(CommandSetterBuilder pSetterBuilder)
HystrixCommand.Setter.pSetterBuilder - the builder to create HystrixCommand.SetterHystrixCommandBuilderpublic HystrixCommandBuilder commandActions(CommandActions pCommandActions)
CommandActions.pCommandActions - the command actionsHystrixCommandBuilderpublic HystrixCommandBuilder commandProperties(java.util.Map<java.lang.String,java.lang.Object> pCommandProperties)
pCommandProperties - the command propertiesHystrixCommandBuilderpublic HystrixCommandBuilder cacheResultInvocationContext(CacheInvocationContext<CacheResult> pCacheResultInvocationContext)
CacheInvocationContext and CacheResult.pCacheResultInvocationContext - the CacheResult invocation contextHystrixCommandBuilderpublic HystrixCommandBuilder cacheRemoveInvocationContext(CacheInvocationContext<CacheRemove> pCacheRemoveInvocationContext)
CacheInvocationContext and CacheRemove.pCacheRemoveInvocationContext - the CacheRemove invocation contextHystrixCommandBuilderpublic HystrixCommandBuilder collapsedRequests(java.util.Collection<com.netflix.hystrix.HystrixCollapser.CollapsedRequest<java.lang.Object,java.lang.Object>> pCollapsedRequests)
pCollapsedRequests - the collapsed requestsHystrixCommandBuilderpublic HystrixCommandBuilder ignoreExceptions(java.lang.Class<? extends java.lang.Throwable>[] pIgnoreExceptions)
HystrixBadRequestException.pIgnoreExceptions - the exceptions to be ignoredHystrixCommandBuilderpublic HystrixCommandBuilder executionType(ExecutionType pExecutionType)
ExecutionType.pExecutionType - the execution typeHystrixCommandBuilder