public interface LightblueRequester extends Requester<com.redhat.lightblue.client.request.CRUDRequest,com.redhat.lightblue.client.response.LightblueDataResponse>
| Modifier and Type | Method and Description |
|---|---|
default TransformableFuture<? extends Responses<com.redhat.lightblue.client.request.CRUDRequest,LightblueResponse>> |
tryRequest(Collection<? extends com.redhat.lightblue.client.request.CRUDRequest> req)
Like
Requester.request(Collection), except with relaxed failure conditions so that listeners
to this future result may examine and transform errors from lightblue in addition to
successful responses. |
TransformableFuture<? extends Responses<com.redhat.lightblue.client.request.CRUDRequest,LightblueResponse>> |
tryRequest(com.redhat.lightblue.client.request.CRUDRequest... req)
Like
Requester.request(Object[]), except with relaxed failure conditions so that listeners to
this future result may examine and transform errors from lightblue in addition to successful
responses. |
TransformableFuture<? extends Responses<com.redhat.lightblue.client.request.CRUDRequest,LightblueResponse>> tryRequest(com.redhat.lightblue.client.request.CRUDRequest... req)
Requester.request(Object[]), except with relaxed failure conditions so that listeners to
this future result may examine and transform errors from lightblue in addition to successful
responses. A listener can examine whether or not these responses are failed with
LightblueResponse.isSuccess().
The returned future will only fail if the lightblue request did not complete and there are no responses with which to populate the future value.
This contrasts with Requester.request(Object[]) which always returns successful
LightblueDataResponses, and if any responses have returned with errors, the future
will fail.
LightblueResponsedefault TransformableFuture<? extends Responses<com.redhat.lightblue.client.request.CRUDRequest,LightblueResponse>> tryRequest(Collection<? extends com.redhat.lightblue.client.request.CRUDRequest> req)
Requester.request(Collection), except with relaxed failure conditions so that listeners
to this future result may examine and transform errors from lightblue in addition to
successful responses. A listener can examine whether or not these responses are failed with
LightblueResponse.isSuccess().
The returned future will only fail if the lightblue request did not complete and there are no responses with which to populate the future value.
This contrasts with Requester.request(Collection) which always returns successful
LightblueDataResponses, and if any responses have returned with errors, the future
will fail.
LightblueResponseCopyright © 2017. All rights reserved.