
public static interface HystrixCollapser.CollapsedRequest<ResponseType,RequestArgumentType>
executeBatch implementation.| Modifier and Type | Method and Description |
|---|---|
RequestArgumentType |
getArgument()
The request argument passed into the
HystrixCollapser instance constructor which was then collapsed. |
void |
setException(java.lang.Exception exception)
When set any client thread blocking on get() will immediately be unblocked and receive the exception.
|
void |
setResponse(ResponseType response)
When set any client thread blocking on get() will immediately be unblocked and receive the response.
|
RequestArgumentType getArgument()
HystrixCollapser instance constructor which was then collapsed.void setResponse(ResponseType response)
response - ResponseTypejava.lang.IllegalStateException - if called more than once or after setException.void setException(java.lang.Exception exception)
exception - exception to set on responsejava.lang.IllegalStateException - if called more than once or after setResponse.