Uses of Class
com.azure.messaging.eventhubs.models.EventPosition
Packages that use EventPosition
Package
Description
Package containing classes for creating
EventHubProducerAsyncClient,
EventHubProducerClient,
EventHubConsumerAsyncClient,
EventHubConsumerClient, or
EventProcessorClient to perform operations on Azure Event Hubs.Package containing classes used for creating and configuring events that are being sent-to and received-from Azure
Event Hubs service.
-
Uses of EventPosition in com.azure.messaging.eventhubs
Methods in com.azure.messaging.eventhubs with parameters of type EventPositionModifier and TypeMethodDescriptionEventHubConsumerAsyncClient.receiveFromPartition(String partitionId, EventPosition startingPosition) Consumes events from a single partition starting atstartingPosition.EventHubConsumerAsyncClient.receiveFromPartition(String partitionId, EventPosition startingPosition, ReceiveOptions receiveOptions) Consumes events from a single partition starting atstartingPositionwith a set ofreceive options.com.azure.core.util.IterableStream<PartitionEvent>EventHubConsumerClient.receiveFromPartition(String partitionId, int maximumMessageCount, EventPosition startingPosition) Receives a batch ofeventsfrom the Event Hub partition.com.azure.core.util.IterableStream<PartitionEvent>EventHubConsumerClient.receiveFromPartition(String partitionId, int maximumMessageCount, EventPosition startingPosition, Duration maximumWaitTime) Receives a batch ofeventsfrom the Event Hub partition.com.azure.core.util.IterableStream<PartitionEvent>EventHubConsumerClient.receiveFromPartition(String partitionId, int maximumMessageCount, EventPosition startingPosition, Duration maximumWaitTime, ReceiveOptions receiveOptions) Receives a batch ofeventsfrom the Event Hub partition.Method parameters in com.azure.messaging.eventhubs with type arguments of type EventPositionModifier and TypeMethodDescriptionEventProcessorClientBuilder.initialPartitionEventPosition(Map<String, EventPosition> initialPartitionEventPosition) Sets the map containing the event position to use for each partition if a checkpoint for the partition does not exist inCheckpointStore. -
Uses of EventPosition in com.azure.messaging.eventhubs.models
Methods in com.azure.messaging.eventhubs.models that return EventPositionModifier and TypeMethodDescriptionstatic EventPositionEventPosition.earliest()Corresponds to the location of the first event present in the partition.static EventPositionEventPosition.fromEnqueuedTime(Instant enqueuedDateTime) Creates a position at the givenInstant.static EventPositionEventPosition.fromOffset(long offset) Creates a position to an event in the partition at the provided offset.static EventPositionEventPosition.fromSequenceNumber(long sequenceNumber) Creates a position to an event in the partition at the provided sequence number.static EventPositionEventPosition.fromSequenceNumber(long sequenceNumber, boolean isInclusive) Creates a position at the given sequence number.static EventPositionEventPosition.latest()Corresponds to the end of the partition, where no more events are currently enqueued.