
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.hystrix.collapser.RequestCollapser<BatchReturnType,ResponseType,RequestArgumentType>
@ThreadSafe public class RequestCollapser<BatchReturnType,ResponseType,RequestArgumentType>
Requests are submitted to this and batches executed based on size or time. Scoped to either a request or the global application.
Instances of this are retrieved from the RequestCollapserFactory. Must be thread-safe since it exists within a RequestVariable which is request-scoped and can be accessed from multiple threads.
| Method Summary | |
|---|---|
void |
shutdown()
Called from RequestVariable.shutdown() to unschedule the task. |
rx.Observable<ResponseType> |
submitRequest(RequestArgumentType arg)
Submit a request to a batch. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public rx.Observable<ResponseType> submitRequest(RequestArgumentType arg)
arg -
java.lang.IllegalStateException - if submitting after shutdownpublic void shutdown()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||