public interface EventMeshTCPSubClient<ProtocolMessage>
extends java.lang.AutoCloseable
CloudEventTCPSubClientEventMeshMessageTCPSubClientOpenMessageTCPSubClient| 限定符和类型 | 方法和说明 |
|---|---|
void |
init() |
void |
listen() |
void |
reconnect() |
void |
registerBusiHandler(ReceiveMsgHook<ProtocolMessage> handler) |
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.EventMeshExceptionvoid reconnect()
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 listen()
throws org.apache.eventmesh.common.exception.EventMeshException
org.apache.eventmesh.common.exception.EventMeshExceptionvoid registerBusiHandler(ReceiveMsgHook<ProtocolMessage> handler) throws org.apache.eventmesh.common.exception.EventMeshException
org.apache.eventmesh.common.exception.EventMeshException