| Modifier and Type | Field and Description |
|---|---|
protected Endpoint |
endpoint |
static String |
ENDPOINT_KEY
用于参数传递:比如向RestServerVerticle传递endpoint地址。
|
protected Endpoint |
publishEndpoint |
protected io.vertx.core.Vertx |
transportVertx |
| Constructor and Description |
|---|
AbstractTransport() |
| Modifier and Type | Method and Description |
|---|---|
Endpoint |
getEndpoint()
本tranport的监听地址
|
Endpoint |
getPublishEndpoint()
用于上报到服务中心,要求是其他节点可访问的地址
|
static long |
getRequestTimeout() |
Object |
parseAddress(String address)
endpoint的格式为 URI,比如rest://192.168.1.1:8080
|
protected void |
setListenAddressWithoutSchema(String addressWithoutSchema) |
protected void |
setListenAddressWithoutSchema(String addressWithoutSchema,
Map<String,String> pairs)
将配置的URI转换为endpoint
addressWithoutSchema 配置的URI,没有schema部分
|
public static final String ENDPOINT_KEY
protected io.vertx.core.Vertx transportVertx
protected Endpoint endpoint
protected Endpoint publishEndpoint
public static long getRequestTimeout()
public Endpoint getPublishEndpoint()
TransportgetPublishEndpoint in interface Transportpublic Endpoint getEndpoint()
TransportgetEndpoint in interface Transportprotected void setListenAddressWithoutSchema(String addressWithoutSchema)
protected void setListenAddressWithoutSchema(String addressWithoutSchema, Map<String,String> pairs)
public Object parseAddress(String address)
TransportparseAddress in interface TransportCopyright © 2017. All rights reserved.