Class UninitializedMessageReceiver
java.lang.Object
pl.allegro.tech.hermes.consumers.consumer.receiver.UninitializedMessageReceiver
- All Implemented Interfaces:
MessageReceiver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit(Set<SubscriptionPartitionOffset> offsets) pl.allegro.tech.hermes.common.kafka.offset.PartitionOffsetsmoveOffset(pl.allegro.tech.hermes.common.kafka.offset.PartitionOffsets offsets) next()Retrieves the next available message from the queue.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pl.allegro.tech.hermes.consumers.consumer.receiver.MessageReceiver
stop, update
-
Constructor Details
-
UninitializedMessageReceiver
public UninitializedMessageReceiver()
-
-
Method Details
-
next
Description copied from interface:MessageReceiverRetrieves the next available message from the queue.Depending on the context, the returned
Optionalcan contain: -
commit
- Specified by:
commitin interfaceMessageReceiver
-
moveOffset
public pl.allegro.tech.hermes.common.kafka.offset.PartitionOffsets moveOffset(pl.allegro.tech.hermes.common.kafka.offset.PartitionOffsets offsets) - Specified by:
moveOffsetin interfaceMessageReceiver
-
getAssignedPartitions
- Specified by:
getAssignedPartitionsin interfaceMessageReceiver
-