public interface RpcClient
IpcClient for zero of vertx
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_POOL_NAME
Default pool name
|
| Modifier and Type | Method and Description |
|---|---|
RpcClient |
close() |
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
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)
Only support Unity Type
name - service nameaddress - service addressdata - JsonObject datahandler - async handlerRpcClient close()
Copyright © 2021. All rights reserved.