Class R2TransportClient.R2TransportClientCallback

  • All Implemented Interfaces:
    com.linkedin.common.callback.Callback<com.linkedin.r2.message.rest.RestResponse>, com.linkedin.common.callback.SuccessCallback<com.linkedin.r2.message.rest.RestResponse>
    Enclosing class:
    R2TransportClient

    public static class R2TransportClient.R2TransportClientCallback
    extends TransportClientCallback
    implements com.linkedin.common.callback.Callback<com.linkedin.r2.message.rest.RestResponse>
    • Constructor Detail

      • R2TransportClientCallback

        public R2TransportClientCallback​(java.util.concurrent.CompletableFuture<TransportClientResponse> valueFuture)
    • Method Detail

      • onError

        public void onError​(java.lang.Throwable e)
        Specified by:
        onError in interface com.linkedin.common.callback.Callback<com.linkedin.r2.message.rest.RestResponse>
      • onSuccess

        public void onSuccess​(com.linkedin.r2.message.rest.RestResponse result)
        Specified by:
        onSuccess in interface com.linkedin.common.callback.SuccessCallback<com.linkedin.r2.message.rest.RestResponse>