public abstract class ListeningCommand<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| Constructor and Description |
|---|
ListeningCommand(RpcOutcomeListener<T> listener) |
| 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) |
RpcOutcomeListener<T> |
getOutcomeListener() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMessage, getRpcTypepublic ListeningCommand(RpcOutcomeListener<T> listener)
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 void connectionFailed(RpcConnectionHandler.FailureType type, Throwable t)
connectionFailed in interface RpcConnectionHandler<C extends RemoteConnection>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>Copyright © 2021 The Apache Software Foundation. All rights reserved.