Package com.yahoo.search.dispatch.rpc
Interface RpcConnectionPool
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
RpcResourcePool
Interface for getting a connection given a node id.
- Author:
- balderersheim
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Shuts down all connections in the pool, and the underlying RPC client.getConnection
(int nodeId) Returns a connection to the given node id.default Collection<? extends AutoCloseable>
updateNodes
(com.yahoo.vespa.config.search.DispatchNodesConfig nodesConfig) Will return a list of items that need a delayed close when updating node set.
-
Method Details
-
getConnection
Returns a connection to the given node id. -
updateNodes
default Collection<? extends AutoCloseable> updateNodes(com.yahoo.vespa.config.search.DispatchNodesConfig nodesConfig) Will return a list of items that need a delayed close when updating node set. -
close
void close()Shuts down all connections in the pool, and the underlying RPC client.- Specified by:
close
in interfaceAutoCloseable
-