Class LastEnqueuedEventProperties
java.lang.Object
com.azure.messaging.eventhubs.models.LastEnqueuedEventProperties
A set of information about the enqueued state of a partition, as observed by the consumer.
-
Constructor Summary
ConstructorsConstructorDescriptionLastEnqueuedEventProperties(Long lastSequenceNumber, Long lastOffset, Instant lastEnqueuedTime, Instant retrievalTime) Deprecated.Constructor is deprecated.LastEnqueuedEventProperties(Long lastSequenceNumber, String lastOffsetString, Instant lastEnqueuedTime, Instant retrievalTime) Creates an instance with the last enqueued event information set. -
Method Summary
Modifier and TypeMethodDescriptionGets the date and time, in UTC, that the last observed event was enqueued in the partition.Deprecated.This value is obsolete and should no longer be used.Gets the offset of the last observed event enqueued in the partition.Gets the date and time, in UTC, that the information about the last enqueued event was retrieved.Gets the sequence number of the last observed event to be enqueued in the partition.
-
Constructor Details
-
LastEnqueuedEventProperties
@Deprecated public LastEnqueuedEventProperties(Long lastSequenceNumber, Long lastOffset, Instant lastEnqueuedTime, Instant retrievalTime) Deprecated.Constructor is deprecated. UseLastEnqueuedEventProperties(Long, String, Instant, Instant)Creates an instance with the last enqueued event information set.- Parameters:
lastSequenceNumber- Sequence number of the last event to be enqueued in a partition.nullif the information has not been retrieved, yet.lastOffset- Offset of the last observed event enqueued in a partition.nullif the information has not been retrieved, yet.lastEnqueuedTime- The date and time of the last observed event enqueued in a partition.nullif the information has not been retrieved, yet.retrievalTime- The date and time that the information was retrieved.nullif the information has not been retrieved, yet.
-
LastEnqueuedEventProperties
public LastEnqueuedEventProperties(Long lastSequenceNumber, String lastOffsetString, Instant lastEnqueuedTime, Instant retrievalTime) Creates an instance with the last enqueued event information set.- Parameters:
lastSequenceNumber- Sequence number of the last event to be enqueued in a partition.nullif the information has not been retrieved, yet.lastOffsetString- Offset of the last observed event enqueued in a partition.nullif the information has not been retrieved, yet.lastEnqueuedTime- The date and time of the last observed event enqueued in a partition.nullif the information has not been retrieved, yet.retrievalTime- The date and time that the information was retrieved.nullif the information has not been retrieved, yet.
-
-
Method Details
-
getSequenceNumber
Gets the sequence number of the last observed event to be enqueued in the partition.- Returns:
- The sequence number of the last observed event to be enqueued in the partition.
nullif the information has not been retrieved, yet.
-
getOffset
Deprecated.This value is obsolete and should no longer be used. Please usegetOffsetString()instead.Gets the offset of the last observed event enqueued in the partition.- Returns:
- The offset of the last observed event enqueued in the partition.
nullif the information has not been retrieved, or the offset cannot be represented as a long.
-
getOffsetString
Gets the offset of the last observed event enqueued in the partition.- Returns:
- The offset of the last observed event enqueued in the partition.
nullif the information has not been retrieved, yet.
-
getEnqueuedTime
Gets the date and time, in UTC, that the last observed event was enqueued in the partition.- Returns:
- The date and time, in UTC, that the last observed event was enqueued in the partition.
nullif the information has not been retrieved, yet.
-
getRetrievalTime
Gets the date and time, in UTC, that the information about the last enqueued event was retrieved.- Returns:
- The date and time, in UTC, that the information about the last enqueued event was retrieved.
nullif the information has not been retrieved, yet.
-