Class AsyncConfigNodeIServiceClient.Factory
- java.lang.Object
-
- org.apache.iotdb.commons.client.factory.BaseClientFactory<K,V>
-
- org.apache.iotdb.commons.client.factory.ThriftClientFactory<K,V>
-
- org.apache.iotdb.commons.client.factory.AsyncThriftClientFactory<org.apache.iotdb.common.rpc.thrift.TEndPoint,AsyncConfigNodeIServiceClient>
-
- org.apache.iotdb.commons.client.async.AsyncConfigNodeIServiceClient.Factory
-
- All Implemented Interfaces:
org.apache.commons.pool2.KeyedPooledObjectFactory<org.apache.iotdb.common.rpc.thrift.TEndPoint,AsyncConfigNodeIServiceClient>
- Enclosing class:
- AsyncConfigNodeIServiceClient
public static class AsyncConfigNodeIServiceClient.Factory extends AsyncThriftClientFactory<org.apache.iotdb.common.rpc.thrift.TEndPoint,AsyncConfigNodeIServiceClient>
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.commons.client.factory.AsyncThriftClientFactory
clientCnt, tManagers
-
Fields inherited from class org.apache.iotdb.commons.client.factory.ThriftClientFactory
thriftClientProperty
-
Fields inherited from class org.apache.iotdb.commons.client.factory.BaseClientFactory
clientManager
-
-
Constructor Summary
Constructors Constructor Description Factory(ClientManager<org.apache.iotdb.common.rpc.thrift.TEndPoint,AsyncConfigNodeIServiceClient> clientManager, ThriftClientProperty thriftClientProperty, java.lang.String threadName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroyObject(org.apache.iotdb.common.rpc.thrift.TEndPoint endPoint, org.apache.commons.pool2.PooledObject<AsyncConfigNodeIServiceClient> pooledObject)org.apache.commons.pool2.PooledObject<AsyncConfigNodeIServiceClient>makeObject(org.apache.iotdb.common.rpc.thrift.TEndPoint endPoint)booleanvalidateObject(org.apache.iotdb.common.rpc.thrift.TEndPoint endPoint, org.apache.commons.pool2.PooledObject<AsyncConfigNodeIServiceClient> pooledObject)-
Methods inherited from class org.apache.iotdb.commons.client.factory.BaseClientFactory
activateObject, passivateObject
-
-
-
-
Constructor Detail
-
Factory
public Factory(ClientManager<org.apache.iotdb.common.rpc.thrift.TEndPoint,AsyncConfigNodeIServiceClient> clientManager, ThriftClientProperty thriftClientProperty, java.lang.String threadName)
-
-
Method Detail
-
destroyObject
public void destroyObject(org.apache.iotdb.common.rpc.thrift.TEndPoint endPoint, org.apache.commons.pool2.PooledObject<AsyncConfigNodeIServiceClient> pooledObject)
-
makeObject
public org.apache.commons.pool2.PooledObject<AsyncConfigNodeIServiceClient> makeObject(org.apache.iotdb.common.rpc.thrift.TEndPoint endPoint) throws java.lang.Exception
- Throws:
java.lang.Exception
-
validateObject
public boolean validateObject(org.apache.iotdb.common.rpc.thrift.TEndPoint endPoint, org.apache.commons.pool2.PooledObject<AsyncConfigNodeIServiceClient> pooledObject)
-
-