Interface MessageReceiver
- All Known Implementing Classes:
FilteringMessageReceiver,KafkaSingleThreadedMessageReceiver,ThrottlingMessageReceiver,UninitializedMessageReceiver
public interface MessageReceiver
-
Method Summary
Modifier and TypeMethodDescriptionvoidcommit(Set<SubscriptionPartitionOffset> offsets) booleanmoveOffset(pl.allegro.tech.hermes.common.kafka.offset.PartitionOffset offset) next()Retrieves the next available message from the queue.default voidstop()default voidupdate(pl.allegro.tech.hermes.api.Subscription newSubscription)
-
Method Details
-
next
Retrieves the next available message from the queue.Depending on the context, the returned
Optionalcan contain: -
stop
default void stop() -
update
default void update(pl.allegro.tech.hermes.api.Subscription newSubscription) -
commit
-
moveOffset
boolean moveOffset(pl.allegro.tech.hermes.common.kafka.offset.PartitionOffset offset)
-