public interface RibbonRequest<T>
| Modifier and Type | Method and Description |
|---|---|
T |
execute()
Blocking API that returns a single (or last element if there is a sequence of objects from the execution) element
|
rx.Observable<T> |
observe()
Non blocking API that returns an
Observable while the execution is started asynchronously. |
java.util.concurrent.Future<T> |
queue()
Non blocking API that returns a
Future, where its Future.get() method is blocking and returns a
single (or last element if there is a sequence of objects from the execution) element |
rx.Observable<T> |
toObservable()
Non blocking API that returns an Observable.
|
RequestWithMetaData<T> |
withMetadata()
Create a decorated
RequestWithMetaData where you can call its similar blocking or non blocking
APIs to get RibbonResponse, which in turn contains returned object(s) and
some meta data from Hystrix execution. |
T execute()
java.util.concurrent.Future<T> queue()
Future, where its Future.get() method is blocking and returns a
single (or last element if there is a sequence of objects from the execution) elementrx.Observable<T> observe()
Observable while the execution is started asynchronously.
Subscribing to the returned Observable is guaranteed to get the complete sequence from
the beginning, which might be replayed by the framework. Use this API for "fire and forget".rx.Observable<T> toObservable()
RequestWithMetaData<T> withMetadata()
RequestWithMetaData where you can call its similar blocking or non blocking
APIs to get RibbonResponse, which in turn contains returned object(s) and
some meta data from Hystrix execution.