Class R2TransportClient.R2TransportClientCallback
- java.lang.Object
-
- com.linkedin.venice.client.store.transport.TransportClientCallback
-
- com.linkedin.venice.fastclient.transport.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 Summary
Constructors Constructor Description R2TransportClientCallback(java.util.concurrent.CompletableFuture<TransportClientResponse> valueFuture)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onError(java.lang.Throwable e)
void
onSuccess(com.linkedin.r2.message.rest.RestResponse result)
-
Methods inherited from class com.linkedin.venice.client.store.transport.TransportClientCallback
completeFuture, getValueFuture
-
-
-
-
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 interfacecom.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 interfacecom.linkedin.common.callback.SuccessCallback<com.linkedin.r2.message.rest.RestResponse>
-
-