Interface RpcClient

  • All Known Implementing Classes:
    RpcClientImpl

    public interface RpcClient
    IpcClient for zero of vertx
    Author:
    Lang
    • Method Detail

      • createNonShared

        static RpcClient createNonShared​(io.vertx.core.Vertx vertx,
                                         io.vertx.core.json.JsonObject config)
        Parameters:
        vertx - the Vert.x instance
        config - the configuration
        Returns:
        the client
      • createShared

        static RpcClient createShared​(io.vertx.core.Vertx vertx,
                                      io.vertx.core.json.JsonObject config,
                                      String name)
        Parameters:
        vertx - the Vert.x instance
        config - the configuration
        name - the name
        Returns:
        the client
      • createShared

        static RpcClient createShared​(io.vertx.core.Vertx vertx,
                                      io.vertx.core.json.JsonObject config)
      • connect

        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)
        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

        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)
        Only support Unity Type
        Parameters:
        name - service name
        address - service address
        data - JsonObject data
        handler - async handler
        Returns:
        Rpc client