Package org.apache.iotdb.commons.client
Interface IClientManager<K,V>
-
- All Known Implementing Classes:
ClientManager
@ThreadSafe public interface IClientManager<K,V>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIClientManager.Factory<K,V>
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VborrowClient(K node)get a client V for node K from the IClientManager.voidclear(K node)clear all clients for node K.voidclose()close IClientManager, which means closing all clients for all nodes.
-
-
-
Method Detail
-
borrowClient
V borrowClient(K node) throws ClientManagerException
get a client V for node K from the IClientManager.- Throws:
BorrowNullClientManagerException- if node is nullClientManagerException- for other exceptions
-
clear
void clear(K node)
clear all clients for node K.
-
close
void close()
close IClientManager, which means closing all clients for all nodes.
-
-