public class CloudEventTCPClient extends java.lang.Object implements EventMeshTCPClient<io.cloudevents.CloudEvent>
| 构造器和说明 |
|---|
CloudEventTCPClient(EventMeshTCPClientConfig eventMeshTcpClientConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
asyncRR(io.cloudevents.CloudEvent cloudEvent,
AsyncRRCallback callback,
long timeout) |
void |
broadcast(io.cloudevents.CloudEvent cloudEvent,
long timeout) |
void |
close() |
EventMeshTCPPubClient<io.cloudevents.CloudEvent> |
getPubClient() |
EventMeshTCPSubClient<io.cloudevents.CloudEvent> |
getSubClient() |
void |
init() |
void |
listen() |
org.apache.eventmesh.common.protocol.tcp.Package |
publish(io.cloudevents.CloudEvent cloudEvent,
long timeout) |
void |
registerPubBusiHandler(ReceiveMsgHook<io.cloudevents.CloudEvent> handler) |
void |
registerSubBusiHandler(ReceiveMsgHook<io.cloudevents.CloudEvent> handler) |
org.apache.eventmesh.common.protocol.tcp.Package |
rr(io.cloudevents.CloudEvent cloudEvent,
long timeout) |
void |
subscribe(java.lang.String topic,
org.apache.eventmesh.common.protocol.SubscriptionMode subscriptionMode,
org.apache.eventmesh.common.protocol.SubscriptionType subscriptionType) |
void |
unsubscribe() |
public CloudEventTCPClient(EventMeshTCPClientConfig eventMeshTcpClientConfig)
public void init()
throws org.apache.eventmesh.common.exception.EventMeshException
init 在接口中 EventMeshTCPClient<io.cloudevents.CloudEvent>org.apache.eventmesh.common.exception.EventMeshExceptionpublic org.apache.eventmesh.common.protocol.tcp.Package rr(io.cloudevents.CloudEvent cloudEvent,
long timeout)
throws org.apache.eventmesh.common.exception.EventMeshException
rr 在接口中 EventMeshTCPClient<io.cloudevents.CloudEvent>org.apache.eventmesh.common.exception.EventMeshExceptionpublic void asyncRR(io.cloudevents.CloudEvent cloudEvent,
AsyncRRCallback callback,
long timeout)
throws org.apache.eventmesh.common.exception.EventMeshException
asyncRR 在接口中 EventMeshTCPClient<io.cloudevents.CloudEvent>org.apache.eventmesh.common.exception.EventMeshExceptionpublic org.apache.eventmesh.common.protocol.tcp.Package publish(io.cloudevents.CloudEvent cloudEvent,
long timeout)
throws org.apache.eventmesh.common.exception.EventMeshException
publish 在接口中 EventMeshTCPClient<io.cloudevents.CloudEvent>org.apache.eventmesh.common.exception.EventMeshExceptionpublic void broadcast(io.cloudevents.CloudEvent cloudEvent,
long timeout)
throws org.apache.eventmesh.common.exception.EventMeshException
broadcast 在接口中 EventMeshTCPClient<io.cloudevents.CloudEvent>org.apache.eventmesh.common.exception.EventMeshExceptionpublic void listen()
throws org.apache.eventmesh.common.exception.EventMeshException
listen 在接口中 EventMeshTCPClient<io.cloudevents.CloudEvent>org.apache.eventmesh.common.exception.EventMeshExceptionpublic void 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
subscribe 在接口中 EventMeshTCPClient<io.cloudevents.CloudEvent>org.apache.eventmesh.common.exception.EventMeshExceptionpublic void unsubscribe()
throws org.apache.eventmesh.common.exception.EventMeshException
unsubscribe 在接口中 EventMeshTCPClient<io.cloudevents.CloudEvent>org.apache.eventmesh.common.exception.EventMeshExceptionpublic void registerPubBusiHandler(ReceiveMsgHook<io.cloudevents.CloudEvent> handler) throws org.apache.eventmesh.common.exception.EventMeshException
registerPubBusiHandler 在接口中 EventMeshTCPClient<io.cloudevents.CloudEvent>org.apache.eventmesh.common.exception.EventMeshExceptionpublic void registerSubBusiHandler(ReceiveMsgHook<io.cloudevents.CloudEvent> handler) throws org.apache.eventmesh.common.exception.EventMeshException
registerSubBusiHandler 在接口中 EventMeshTCPClient<io.cloudevents.CloudEvent>org.apache.eventmesh.common.exception.EventMeshExceptionpublic void close()
throws org.apache.eventmesh.common.exception.EventMeshException
close 在接口中 java.lang.AutoCloseableorg.apache.eventmesh.common.exception.EventMeshExceptionpublic EventMeshTCPPubClient<io.cloudevents.CloudEvent> getPubClient()
getPubClient 在接口中 EventMeshTCPClient<io.cloudevents.CloudEvent>public EventMeshTCPSubClient<io.cloudevents.CloudEvent> getSubClient()
getSubClient 在接口中 EventMeshTCPClient<io.cloudevents.CloudEvent>