public class TarsPromiseFutureCallback<V> extends Object implements Callback<TarsServantResponse>
| 构造器和说明 |
|---|
TarsPromiseFutureCallback(ServantProxyConfig config,
String methodName,
String remoteIp,
int remotePort,
long bornTime,
TarsInvoker<?> invoker,
CompletableFuture<V> completableFuture) |
public TarsPromiseFutureCallback(ServantProxyConfig config, String methodName, String remoteIp, int remotePort, long bornTime, TarsInvoker<?> invoker, CompletableFuture<V> completableFuture)
public void onCompleted(TarsServantResponse response)
onCompleted 在接口中 Callback<TarsServantResponse>public void onException(Throwable e)
onException 在接口中 Callback<TarsServantResponse>public void onExpired()
onExpired 在接口中 Callback<TarsServantResponse>Copyright © 2020. All Rights Reserved.