public abstract class ReconnectingConnection<C extends ClientConnection,HS extends com.google.protobuf.MessageLite> extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
protected class |
ReconnectingConnection.CloseHandler
Listens for connection closes and clears connection holder.
|
class |
ReconnectingConnection.CloseHandlerCreator
Factory for close handlers
|
class |
ReconnectingConnection.ConnectionListeningFuture<R extends com.google.protobuf.MessageLite,E extends com.google.protobuf.Internal.EnumLite,M extends com.google.protobuf.MessageLite> |
| Constructor and Description |
|---|
ReconnectingConnection(HS handshake,
String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExternalConnection(C connection) |
void |
close() |
ReconnectingConnection.CloseHandlerCreator |
getCloseHandlerCreator() |
protected abstract BasicClient<?,C,HS,?> |
getNewClient() |
<T extends com.google.protobuf.MessageLite,E extends com.google.protobuf.Internal.EnumLite,M extends com.google.protobuf.MessageLite,R extends RpcCommand<T,C,E,M>> |
runCommand(R cmd) |
protected abstract BasicClient<?,C,HS,?> getNewClient()
public <T extends com.google.protobuf.MessageLite,E extends com.google.protobuf.Internal.EnumLite,M extends com.google.protobuf.MessageLite,R extends RpcCommand<T,C,E,M>> void runCommand(R cmd)
public ReconnectingConnection.CloseHandlerCreator getCloseHandlerCreator()
public void addExternalConnection(C connection)
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2021 The Apache Software Foundation. All rights reserved.