public static interface HystrixCollapser.CollapsedRequest<ResponseType,RequestArgumentType>
executeBatch implementation.| Modifier and Type | Method and Description |
|---|---|
void |
emitResponse(ResponseType response)
When invoked, any Observer will be OnNexted this value
|
RequestArgumentType |
getArgument()
The request argument passed into the
HystrixCollapser instance constructor which was then collapsed. |
void |
setComplete()
When set, any Observer will have an OnCompleted emitted.
|
void |
setException(java.lang.Exception exception)
When set, any Observer will be OnErrored this exception
|
void |
setResponse(ResponseType response)
This corresponds in a OnNext(Response); OnCompleted pair of emissions.
|
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/setComplete.void emitResponse(ResponseType response)
response - java.lang.IllegalStateException - if called after setException/setResponse/setComplete.void setException(java.lang.Exception exception)
exception - exception to set on responsejava.lang.IllegalStateException - if called more than once or after setResponse/setComplete.void setComplete()