Class ServerRpcManager<T extends ServerRpc>

    • Constructor Detail

      • ServerRpcManager

        public ServerRpcManager​(T implementation,
                                Class<T> rpcInterface)
        Create a RPC manager for an RPC target.
        Parameters:
        implementation - RPC interface implementation for the target
        rpcInterface - RPC interface type
    • Method Detail

      • getImplementation

        protected T getImplementation()
        Returns the RPC interface implementation for the RPC target.
        Returns:
        RPC interface implementation
      • getRpcInterface

        public Class<T> getRpcInterface()
        Returns the RPC interface type managed by this RPC manager instance.
        Returns:
        RPC interface type
      • getRpcProxy

        public static <T extends ServerRpc> T getRpcProxy​(ClientConnector connector,
                                                          Class<T> rpcInterface)
        Returns an RPC proxy for a given client to server RPC interface for the given component or extension.
        Parameters:
        connector - the connector for which to the RPC proxy
        rpcInterface - the RPC interface type
        Returns:
        a server RPC handler which can be used to invoke RPC methods
        Since:
        8.0