REQ - 请求类型RES - 响应类型public interface IpcDefinition<REQ,RES>
| 限定符和类型 | 方法和说明 |
|---|---|
default Codec<Throwable> |
errorCodec() |
String |
getAddress()
通信地址
|
static IpcDefinition<Void,Void> |
of(String address) |
static <REQ,RES> IpcDefinition<REQ,RES> |
of(String address,
Class<REQ> requestType,
Class<RES> responseType) |
static <REQ,RES> IpcDefinition<REQ,RES> |
of(String address,
Codec<REQ> requestCodec,
Codec<RES> responseCodec) |
Codec<REQ> |
requestCodec() |
Codec<RES> |
responseCodec() |
String getAddress()
static <REQ,RES> IpcDefinition<REQ,RES> of(String address, Codec<REQ> requestCodec, Codec<RES> responseCodec)
static IpcDefinition<Void,Void> of(String address)
static <REQ,RES> IpcDefinition<REQ,RES> of(String address, Class<REQ> requestType, Class<RES> responseType)
Copyright © 2019–2022. All rights reserved.