Class EventMeshConsumer
- java.lang.Object
-
- org.apache.eventmesh.runtime.core.protocol.http.consumer.EventMeshConsumer
-
public class EventMeshConsumer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description org.slf4j.Loggerloggerorg.slf4j.LoggermessageLogger
-
Constructor Summary
Constructors Constructor Description EventMeshConsumer(EventMeshHTTPServer eventMeshHTTPServer, ConsumerGroupConf consumerGroupConf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsumerGroupConfgetConsumerGroupConf()EventMeshHTTPServergetEventMeshHTTPServer()voidinit()voidsendMessageBack(io.cloudevents.CloudEvent event, java.lang.String uniqueId, java.lang.String bizSeqNo)voidsetConsumerGroupConf(ConsumerGroupConf consumerGroupConf)voidshutdown()voidstart()voidsubscribe(java.lang.String topic, org.apache.eventmesh.common.protocol.SubscriptionItem subscriptionItem)voidunsubscribe(java.lang.String topic, org.apache.eventmesh.common.protocol.SubscriptionMode subscriptionMode)voidupdateOffset(java.lang.String topic, org.apache.eventmesh.common.protocol.SubscriptionMode subscriptionMode, java.util.List<io.cloudevents.CloudEvent> events, org.apache.eventmesh.api.AbstractContext context)
-
-
-
Constructor Detail
-
EventMeshConsumer
public EventMeshConsumer(EventMeshHTTPServer eventMeshHTTPServer, ConsumerGroupConf consumerGroupConf)
-
-
Method Detail
-
init
public void init() throws java.lang.Exception- Throws:
java.lang.Exception
-
start
public void start() throws java.lang.Exception- Throws:
java.lang.Exception
-
subscribe
public void subscribe(java.lang.String topic, org.apache.eventmesh.common.protocol.SubscriptionItem subscriptionItem) throws java.lang.Exception- Throws:
java.lang.Exception
-
unsubscribe
public void unsubscribe(java.lang.String topic, org.apache.eventmesh.common.protocol.SubscriptionMode subscriptionMode) throws java.lang.Exception- Throws:
java.lang.Exception
-
shutdown
public void shutdown() throws java.lang.Exception- Throws:
java.lang.Exception
-
updateOffset
public void updateOffset(java.lang.String topic, org.apache.eventmesh.common.protocol.SubscriptionMode subscriptionMode, java.util.List<io.cloudevents.CloudEvent> events, org.apache.eventmesh.api.AbstractContext context)
-
getConsumerGroupConf
public ConsumerGroupConf getConsumerGroupConf()
-
setConsumerGroupConf
public void setConsumerGroupConf(ConsumerGroupConf consumerGroupConf)
-
getEventMeshHTTPServer
public EventMeshHTTPServer getEventMeshHTTPServer()
-
sendMessageBack
public void sendMessageBack(io.cloudevents.CloudEvent event, java.lang.String uniqueId, java.lang.String bizSeqNo) throws java.lang.Exception- Throws:
java.lang.Exception
-
-