Interface ProxyFactory<T>


  • public interface ProxyFactory<T>
    Constructs proxy instances for nodes in the cluster.

    The proxy factory constructs proxy instances for the master node of a given NodeId. When a proxy method is invoked, the method will be called on the provided node.

    • Method Detail

      • getProxyFor

        T getProxyFor​(NodeId nodeId)
        Returns the proxy for the given peer.

        The proxy instance is a multiton that is cached internally in the factory, so calling this method

        Parameters:
        nodeId - the peer node identifier
        Returns:
        the proxy for the given peer