List of usage examples for org.apache.thrift.async AsyncMethodCallback interface-usage
From source file com.linecorp.armeria.common.thrift.ThriftCompletableFuture.java
/** * A {@link CompletableFuture} that can be passed in as an {@link AsyncMethodCallback} * when making an asynchronous client-side Thrift RPC. */ public class ThriftCompletableFuture<T> extends CompletableFuture<T> implements AsyncMethodCallback<T> { @Override
From source file com.linecorp.armeria.common.thrift.ThriftListenableFuture.java
/** * A {@link ListenableFuture} that can be passed in as an {@link AsyncMethodCallback} * when making an asynchronous client-side Thrift RPC. */ public class ThriftListenableFuture<T> extends AbstractFuture<T> implements AsyncMethodCallback<T> { @Override
From source file com.rapleaf.hank.client.async.HostConnectionGetBulkCallback.java
public interface HostConnectionGetBulkCallback extends AsyncMethodCallback<PartitionServer.AsyncClient.getBulk_call> { }
From source file com.rapleaf.hank.client.async.HostConnectionGetCallback.java
public interface HostConnectionGetCallback extends AsyncMethodCallback<PartitionServer.AsyncClient.get_call> {
}
From source file com.vmware.photon.controller.common.thrift.SyncHandler.java
/**
* Sync Handler is a helper for calling async methods synchronously.
*
* @param <T> response type
* @param <C> call type
*/
From source file com.vmware.photon.controller.common.thrift.WrappedCallback.java
/**
* Async thrift client callback that is used by the {@link ClientPool} to release the underlying client and forward the
* response to the actual application callback.
*
* @param <C> async thrift client type
* @param <T> response type
From source file com.weibo.dip.flume.extension.sink.scribe.AsyncCallBack.java
class AsyncCallBack<T> implements AsyncMethodCallback<T> { private final Lock lock; private final AtomicInteger callbacksReceived; private final Condition condition; private final AtomicBoolean txnFail;
From source file io.opentracing.thrift.TracingAsyncMethodCallback.java
public class TracingAsyncMethodCallback<T> implements AsyncMethodCallback<T> { private final AsyncMethodCallback<T> callback; private final SpanHolder spanHolder; private final Tracer tracer;
From source file org.apache.flume.sink.scribe.AsyncCallBack.java
class AsyncCallBack<T> implements AsyncMethodCallback<T> { private final Lock lock; private final AtomicInteger callbacksReceived; private final Condition condition; private final AtomicBoolean txnFail;