public static class HystrixCommandBuilder.Builder<ResponseType>
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
HystrixCommandBuilder |
build()
Creates new
HystrixCommandBuilder instance. |
HystrixCommandBuilder.Builder |
cacheRemoveInvocationContext(CacheInvocationContext<CacheRemove> pCacheRemoveInvocationContext)
Sets CacheRemove invocation context, see
CacheInvocationContext and CacheRemove. |
HystrixCommandBuilder.Builder |
cacheResultInvocationContext(CacheInvocationContext<CacheResult> pCacheResultInvocationContext)
Sets CacheResult invocation context, see
CacheInvocationContext and CacheResult. |
HystrixCommandBuilder.Builder |
collapsedRequests(java.util.Collection<com.netflix.hystrix.HystrixCollapser.CollapsedRequest<ResponseType,java.lang.Object>> pCollapsedRequests)
Sets collapsed requests.
|
HystrixCommandBuilder.Builder |
commandActions(CommandActions pCommandActions)
Sets command actions
CommandActions. |
HystrixCommandBuilder.Builder |
executionType(ExecutionType pExecutionType)
Sets execution type, see
ExecutionType. |
HystrixCommandBuilder.Builder |
ignoreExceptions(java.util.List<java.lang.Class<? extends java.lang.Throwable>> pIgnoreExceptions)
Sets exceptions that should be ignored and wrapped to throw in
HystrixBadRequestException. |
HystrixCommandBuilder.Builder |
setterBuilder(GenericSetterBuilder pSetterBuilder)
Sets the builder to create specific Hystrix setter, for instance HystrixCommand.Setter
|
public HystrixCommandBuilder.Builder setterBuilder(GenericSetterBuilder pSetterBuilder)
pSetterBuilder - the builder to create specific Hystrix setterHystrixCommandBuilder.Builderpublic HystrixCommandBuilder.Builder commandActions(CommandActions pCommandActions)
CommandActions.pCommandActions - the command actionsHystrixCommandBuilder.Builderpublic HystrixCommandBuilder.Builder cacheResultInvocationContext(CacheInvocationContext<CacheResult> pCacheResultInvocationContext)
CacheInvocationContext and CacheResult.pCacheResultInvocationContext - the CacheResult invocation contextHystrixCommandBuilder.Builderpublic HystrixCommandBuilder.Builder cacheRemoveInvocationContext(CacheInvocationContext<CacheRemove> pCacheRemoveInvocationContext)
CacheInvocationContext and CacheRemove.pCacheRemoveInvocationContext - the CacheRemove invocation contextHystrixCommandBuilder.Builderpublic HystrixCommandBuilder.Builder collapsedRequests(java.util.Collection<com.netflix.hystrix.HystrixCollapser.CollapsedRequest<ResponseType,java.lang.Object>> pCollapsedRequests)
pCollapsedRequests - the collapsed requestsHystrixCommandBuilder.Builderpublic HystrixCommandBuilder.Builder ignoreExceptions(java.util.List<java.lang.Class<? extends java.lang.Throwable>> pIgnoreExceptions)
HystrixBadRequestException.pIgnoreExceptions - the exceptions to be ignoredHystrixCommandBuilder.Builderpublic HystrixCommandBuilder.Builder executionType(ExecutionType pExecutionType)
ExecutionType.pExecutionType - the execution typeHystrixCommandBuilder.Builderpublic HystrixCommandBuilder build()
HystrixCommandBuilder instance.HystrixCommandBuilder instance