ProtocolMessage - protocol message typepublic interface EventMeshTCPClient<ProtocolMessage>
extends java.lang.AutoCloseable
EventMeshTCPClientFactory to create a target client.| 限定符和类型 | 方法和说明 |
|---|---|
void |
asyncRR(ProtocolMessage msg,
AsyncRRCallback callback,
long timeout) |
void |
broadcast(ProtocolMessage msg,
long timeout) |
EventMeshTCPPubClient<ProtocolMessage> |
getPubClient() |
EventMeshTCPSubClient<ProtocolMessage> |
getSubClient() |
void |
init() |
void |
listen() |
org.apache.eventmesh.common.protocol.tcp.Package |
publish(ProtocolMessage msg,
long timeout) |
void |
registerPubBusiHandler(ReceiveMsgHook<ProtocolMessage> handler) |
void |
registerSubBusiHandler(ReceiveMsgHook<ProtocolMessage> handler) |
org.apache.eventmesh.common.protocol.tcp.Package |
rr(ProtocolMessage msg,
long timeout) |
void |
subscribe(java.lang.String topic,
org.apache.eventmesh.common.protocol.SubscriptionMode subscriptionMode,
org.apache.eventmesh.common.protocol.SubscriptionType subscriptionType) |
void |
unsubscribe() |
void init() throws org.apache.eventmesh.common.exception.EventMeshException
org.apache.eventmesh.common.exception.EventMeshExceptionorg.apache.eventmesh.common.protocol.tcp.Package rr(ProtocolMessage msg, long timeout) throws org.apache.eventmesh.common.exception.EventMeshException
org.apache.eventmesh.common.exception.EventMeshExceptionvoid asyncRR(ProtocolMessage msg, AsyncRRCallback callback, long timeout) throws org.apache.eventmesh.common.exception.EventMeshException
org.apache.eventmesh.common.exception.EventMeshExceptionorg.apache.eventmesh.common.protocol.tcp.Package publish(ProtocolMessage msg, long timeout) throws org.apache.eventmesh.common.exception.EventMeshException
org.apache.eventmesh.common.exception.EventMeshExceptionvoid broadcast(ProtocolMessage msg, long timeout) throws org.apache.eventmesh.common.exception.EventMeshException
org.apache.eventmesh.common.exception.EventMeshExceptionvoid listen()
throws org.apache.eventmesh.common.exception.EventMeshException
org.apache.eventmesh.common.exception.EventMeshExceptionvoid subscribe(java.lang.String topic,
org.apache.eventmesh.common.protocol.SubscriptionMode subscriptionMode,
org.apache.eventmesh.common.protocol.SubscriptionType subscriptionType)
throws org.apache.eventmesh.common.exception.EventMeshException
org.apache.eventmesh.common.exception.EventMeshExceptionvoid unsubscribe()
throws org.apache.eventmesh.common.exception.EventMeshException
org.apache.eventmesh.common.exception.EventMeshExceptionvoid registerPubBusiHandler(ReceiveMsgHook<ProtocolMessage> handler) throws org.apache.eventmesh.common.exception.EventMeshException
org.apache.eventmesh.common.exception.EventMeshExceptionvoid registerSubBusiHandler(ReceiveMsgHook<ProtocolMessage> handler) throws org.apache.eventmesh.common.exception.EventMeshException
org.apache.eventmesh.common.exception.EventMeshExceptionEventMeshTCPPubClient<ProtocolMessage> getPubClient()
EventMeshTCPSubClient<ProtocolMessage> getSubClient()