Class RpcResourcePool

java.lang.Object
com.yahoo.search.dispatch.rpc.RpcResourcePool
All Implemented Interfaces:
RpcConnectionPool, AutoCloseable

public class RpcResourcePool extends Object implements RpcConnectionPool, AutoCloseable
RpcResourcePool constructs FillInvoker objects that communicate with content nodes over RPC. It also contains the RPC connection pool.
Author:
ollivir
  • Constructor Details

    • RpcResourcePool

      public RpcResourcePool(com.yahoo.vespa.config.search.DispatchConfig dispatchConfig, com.yahoo.vespa.config.search.DispatchNodesConfig nodesConfig)
  • Method Details

    • updateNodes

      public Collection<AutoCloseable> updateNodes(com.yahoo.vespa.config.search.DispatchNodesConfig nodesConfig)
      Will return a list of items that need a delayed close
    • getConnection

      public com.yahoo.search.dispatch.rpc.Client.NodeConnection getConnection(int nodeId)
      Specified by:
      getConnection in interface RpcConnectionPool
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable