public abstract class FutureBitCommand<T extends com.google.protobuf.MessageLite,C extends RemoteConnection,E extends com.google.protobuf.Internal.EnumLite,M extends com.google.protobuf.MessageLite> extends Object implements RpcCommand<T,C,E,M>
RpcConnectionHandler.FailureType
Modifier and Type | Field and Description |
---|---|
protected org.apache.drill.shaded.guava.com.google.common.util.concurrent.SettableFuture<T> |
settableFuture |
Constructor and Description |
---|
FutureBitCommand() |
Modifier and Type | Method and Description |
---|---|
void |
connectionAvailable(C connection) |
void |
connectionFailed(RpcConnectionHandler.FailureType type,
Throwable t) |
void |
connectionSucceeded(C connection) |
abstract void |
doRpcCall(RpcOutcomeListener<T> outcomeListener,
C connection) |
DrillRpcFuture<T> |
getFuture() |
RpcOutcomeListener<T> |
getOutcomeListener() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessage, getRpcType
protected final org.apache.drill.shaded.guava.com.google.common.util.concurrent.SettableFuture<T extends com.google.protobuf.MessageLite> settableFuture
public abstract void doRpcCall(RpcOutcomeListener<T> outcomeListener, C connection)
public void connectionAvailable(C connection)
connectionAvailable
in interface RpcCommand<T extends com.google.protobuf.MessageLite,C extends RemoteConnection,E extends com.google.protobuf.Internal.EnumLite,M extends com.google.protobuf.MessageLite>
public void connectionSucceeded(C connection)
connectionSucceeded
in interface RpcConnectionHandler<C extends RemoteConnection>
public DrillRpcFuture<T> getFuture()
public RpcOutcomeListener<T> getOutcomeListener()
getOutcomeListener
in interface RpcCommand<T extends com.google.protobuf.MessageLite,C extends RemoteConnection,E extends com.google.protobuf.Internal.EnumLite,M extends com.google.protobuf.MessageLite>
public void connectionFailed(RpcConnectionHandler.FailureType type, Throwable t)
connectionFailed
in interface RpcConnectionHandler<C extends RemoteConnection>
Copyright © 1970 The Apache Software Foundation. All rights reserved.