Package org.apache.iotdb.commons.client
Interface ThriftClient
-
- All Known Implementing Classes:
AsyncConfigNodeHeartbeatServiceClient,AsyncConfigNodeIServiceClient,AsyncDataNodeHeartbeatServiceClient,AsyncDataNodeInternalServiceClient,AsyncDataNodeMPPDataExchangeServiceClient,SyncConfigNodeIServiceClient,SyncDataNodeInternalServiceClient,SyncDataNodeMPPDataExchangeServiceClient
public interface ThriftClientThis class defines the failed interfaces that thrift client needs to support so that the Thrift Client can clean up the clientManager when it receives the corresponding exception.
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerlogger
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinvalidate()Close this connection.voidinvalidateAll()Removing all pooled instances corresponding to current instance's endpoint.static booleanisConnectionBroken(java.lang.Throwable cause)static voidresolveException(java.lang.Throwable t, ThriftClient o)
-
-
-
Method Detail
-
invalidate
void invalidate()
Close this connection.
-
invalidateAll
void invalidateAll()
Removing all pooled instances corresponding to current instance's endpoint.
-
resolveException
static void resolveException(java.lang.Throwable t, ThriftClient o)
-
isConnectionBroken
static boolean isConnectionBroken(java.lang.Throwable cause)
-
-