public interface Transport
| Modifier and Type | Method and Description |
|---|---|
default boolean |
canInit() |
Endpoint |
getEndpoint()
本tranport的监听地址
|
String |
getName() |
default int |
getOrder() |
Endpoint |
getPublishEndpoint()
用于上报到服务中心,要求是其他节点可访问的地址
|
boolean |
init() |
Object |
parseAddress(String endpoint)
endpoint的格式为 URI,比如rest://192.168.1.1:8080
|
void |
send(Invocation invocation,
AsyncResponse asyncResp) |
String getName()
default int getOrder()
default boolean canInit()
Endpoint getPublishEndpoint() throws Exception
Exceptionvoid send(Invocation invocation, AsyncResponse asyncResp) throws Exception
ExceptionCopyright © 2017. All rights reserved.