Interface RpcConnectionPool

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
RpcResourcePool

public interface RpcConnectionPool extends AutoCloseable
Interface for getting a connection given a node id.
Author:
balderersheim
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

      Client.NodeConnection getConnection(int nodeId)
      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 interface AutoCloseable