public interface RpcClient
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_POOL_NAME
Default pool name
|
| Modifier and Type | Method and Description |
|---|---|
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) |
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
|
static RpcClient |
createNonShared(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject config) |
static RpcClient |
createShared(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject config) |
static RpcClient |
createShared(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject config,
String name) |
static final String DEFAULT_POOL_NAME
static RpcClient createNonShared(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject config)
vertx - the Vert.x instanceconfig - the configurationstatic RpcClient createShared(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject config, String name)
vertx - the Vert.x instanceconfig - the configurationname - the namestatic RpcClient createShared(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject config)
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)
config - send target information
{
"name":"Service Name",
"addr":"Target Rpc Address",
"type": Default is UNITY
}data - send the datahandler - async handlerRpcClient 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)
name - service nameaddress - service addressdata - JsonObject datahandler - async handlerCopyright © 2018. All rights reserved.