public class ThriftListenableFuture<T> extends com.google.common.util.concurrent.AbstractFuture<T> implements AsyncMethodCallback<T>
ListenableFuture that can be passed in as an AsyncMethodCallback
when making an asynchronous client-side Thrift RPC.| Constructor and Description |
|---|
ThriftListenableFuture() |
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete(T t) |
void |
onError(Exception e) |
public void onComplete(T t)
onComplete in interface AsyncMethodCallback<T>public void onError(Exception e)
onError in interface AsyncMethodCallback<T>© Copyright 2015–2017 LINE Corporation. All rights reserved.