org.esbtools.eventhandler.lightblue.client

Interface LightblueRequester

  • All Superinterfaces:
    Requester<com.redhat.lightblue.client.request.CRUDRequest,com.redhat.lightblue.client.response.LightblueDataResponse>
    All Known Implementing Classes:
    BulkLightblueRequester


    public interface LightblueRequester
    extends Requester<com.redhat.lightblue.client.request.CRUDRequest,com.redhat.lightblue.client.response.LightblueDataResponse>
    • Method Detail

      • tryRequest

        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. 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.

        See Also:
        LightblueResponse
      • tryRequest

        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. 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.

        See Also:
        LightblueResponse

Copyright © 2017. All rights reserved.