public interface TransportService
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,ProtocolInfo> |
allProtocols()
当前支持的全部协议
|
<T> CompletionStage<T> |
ask(String protocol,
tech.powerjob.remote.framework.base.URL url,
tech.powerjob.common.PowerSerializable request,
Class<T> clz) |
ProtocolInfo |
defaultProtocol()
自用地址,用于维护 server -> appId 和 server 间通讯
4.3.0 前为 ActorSystem Address(ip:10086)
4.3.0 后 PowerJob 将主协议切换为自由协议,默认使用 HTTP address (ip:10010)
|
void |
tell(String protocol,
tech.powerjob.remote.framework.base.URL url,
tech.powerjob.common.PowerSerializable request) |
ProtocolInfo defaultProtocol()
Map<String,ProtocolInfo> allProtocols()
void tell(String protocol, tech.powerjob.remote.framework.base.URL url, tech.powerjob.common.PowerSerializable request)
<T> CompletionStage<T> ask(String protocol, tech.powerjob.remote.framework.base.URL url, tech.powerjob.common.PowerSerializable request, Class<T> clz) throws tech.powerjob.remote.framework.base.RemotingException
tech.powerjob.remote.framework.base.RemotingExceptionCopyright © 2023. All rights reserved.