public class EventMeshHttpConsumer extends AbstractHttpClient implements java.lang.AutoCloseable
eventMeshHttpClientConfig, eventMeshServerSelector, httpClient| 构造器和说明 |
|---|
EventMeshHttpConsumer(EventMeshHttpClientConfig eventMeshHttpClientConfig) |
EventMeshHttpConsumer(EventMeshHttpClientConfig eventMeshHttpClientConfig,
java.util.concurrent.ThreadPoolExecutor customExecutor) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
heartBeat(java.util.List<org.apache.eventmesh.common.protocol.SubscriptionItem> topicList,
java.lang.String subscribeUrl) |
void |
subscribe(java.util.List<org.apache.eventmesh.common.protocol.SubscriptionItem> topicList,
java.lang.String subscribeUrl)
When receive message will callback the url.
|
void |
unsubscribe(java.util.List<java.lang.String> topicList,
java.lang.String unSubscribeUrl) |
selectEventMeshpublic EventMeshHttpConsumer(EventMeshHttpClientConfig eventMeshHttpClientConfig) throws org.apache.eventmesh.common.exception.EventMeshException
org.apache.eventmesh.common.exception.EventMeshExceptionpublic EventMeshHttpConsumer(EventMeshHttpClientConfig eventMeshHttpClientConfig, java.util.concurrent.ThreadPoolExecutor customExecutor) throws org.apache.eventmesh.common.exception.EventMeshException
org.apache.eventmesh.common.exception.EventMeshExceptionpublic void subscribe(java.util.List<org.apache.eventmesh.common.protocol.SubscriptionItem> topicList,
java.lang.String subscribeUrl)
throws org.apache.eventmesh.common.exception.EventMeshException
topicList - topic that be subscribedsubscribeUrl - url will be triggerorg.apache.eventmesh.common.exception.EventMeshException - if subscribe failedpublic void heartBeat(java.util.List<org.apache.eventmesh.common.protocol.SubscriptionItem> topicList,
java.lang.String subscribeUrl)
public void unsubscribe(java.util.List<java.lang.String> topicList,
java.lang.String unSubscribeUrl)
throws org.apache.eventmesh.common.exception.EventMeshException
topicList - subscribe topicunSubscribeUrl - subscribeUrlorg.apache.eventmesh.common.exception.EventMeshException - if unsubscribe failedpublic void close()
throws org.apache.eventmesh.common.exception.EventMeshException
close 在接口中 java.lang.AutoCloseableclose 在类中 AbstractHttpClientorg.apache.eventmesh.common.exception.EventMeshException