Class RpcClientImpl

    • Field Detail

      • holder

        protected io.vertx.tp.plugin.rpc.RpcHolder holder
    • Constructor Detail

      • RpcClientImpl

        public RpcClientImpl​(io.vertx.core.Vertx vertx,
                             io.vertx.core.json.JsonObject config,
                             String name)
    • Method Detail

      • connect

        public RpcClient connect​(io.vertx.core.json.JsonObject config,
                                 io.vertx.core.json.JsonObject data,
                                 io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
        Specified by:
        connect in interface RpcClient
        Parameters:
        config - send target information { "name":"Service Name", "addr":"Target Rpc Address", "type": Default is UNITY }
        data - send the data
        handler - async handler
        Returns:
        Rpc client
      • connect

        public RpcClient connect​(String name,
                                 String address,
                                 io.vertx.core.json.JsonObject data,
                                 io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
        Description copied from interface: RpcClient
        Only support Unity Type
        Specified by:
        connect in interface RpcClient
        Parameters:
        name - service name
        address - service address
        data - JsonObject data
        handler - async handler
        Returns:
        Rpc client