Class ThriftListenableFuture<T>
- java.lang.Object
-
- com.google.common.util.concurrent.internal.InternalFutureFailureAccess
-
- com.google.common.util.concurrent.AbstractFuture<T>
-
- com.linecorp.armeria.common.thrift.ThriftListenableFuture<T>
-
- All Implemented Interfaces:
com.google.common.util.concurrent.ListenableFuture<T>,Future<T>,AsyncMethodCallback<T>
public class ThriftListenableFuture<T> extends com.google.common.util.concurrent.AbstractFuture<T> implements AsyncMethodCallback<T>
AListenableFuturethat can be passed in as anAsyncMethodCallbackwhen making an asynchronous client-side Thrift RPC.
-
-
Constructor Summary
Constructors Constructor Description ThriftListenableFuture()
-
Method Summary
Modifier and Type Method Description voidonComplete(T t)voidonError(Exception e)
-
-
-
Method Detail
-
onComplete
public void onComplete(T t)
- Specified by:
onCompletein interfaceAsyncMethodCallback<T>
-
onError
public void onError(Exception e)
- Specified by:
onErrorin interfaceAsyncMethodCallback<T>
-
-