Gets an instance of EventPosition
corresponding to the location of the the first event present in the partition.
Use this position to begin receiving from the first event that was enqueued in the partition
which has not expired due to the retention policy.
EventPosition
Gets an instance of EventPosition
corresponding to a specific date and time within the partition to begin seeking an event;
the event enqueued after the requested enqueuedTime
will become the current position.
The date and time, in UTC, from which the next available event should be chosen.
EventPosition
Gets an instance of EventPosition
corresponding to the event in the partition at the provided offset.
The offset of an event with respect to its relative position in the partition.
If true, the specified event is included;
otherwise the next event is returned.
Default: false
.
EventPosition
Gets an instance of EventPosition
corresponding to the event in the partition having a specified sequence number associated with it.
The sequence number assigned to an event when it was enqueued in the partition.
If true, event with the sequenceNumber
is included;
otherwise the next event in sequence will be received.
Default false
.
EventPosition
Gets an instance of EventPosition
corresponding to the end of the partition, where no more events are currently enqueued.
Use this position to begin receiving from the next event to be enqueued in the partion after an EventHubConsumer
is created with this position.
EventPosition
Generated using TypeDoc
Represents the position of an event in an Event Hub partition, typically used in the creation of an
EventHubConsumer
to specify the position in the partition to begin receiving events from.Make use of the below static helpers to create an instance of
EventPosition
fromOffset()
fromSequenceNumber()
fromEnqueuedTime()
earliest()
latest()