LastEnqueuedEventProperties Class
- java.
lang. Object - com.
azure. messaging. eventhubs. models. LastEnqueuedEventProperties
- com.
public class LastEnqueuedEventProperties
A set of information about the enqueued state of a partition, as observed by the consumer.
Constructor Summary
Constructor | Description |
---|---|
LastEnqueuedEventProperties(Long lastSequenceNumber, Long lastOffset, Instant lastEnqueuedTime, Instant retrievalTime) |
Creates an instance with the last enqueued event information set. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Instant |
getEnqueuedTime()
Gets the date and time, in UTC, that the last observed event was enqueued in the partition. |
Long |
getOffset()
Gets the offset of the last observed event enqueued in the partition. |
Instant |
getRetrievalTime()
Gets the date and time, in UTC, that the information about the last enqueued event was retrieved. |
Long |
getSequenceNumber()
Gets the sequence number of the last observed event to be enqueued in the partition. |
Methods inherited from java.lang.Object
Constructor Details
LastEnqueuedEventProperties
public LastEnqueuedEventProperties(Long lastSequenceNumber, Long lastOffset, Instant lastEnqueuedTime, Instant retrievalTime)
Creates an instance with the last enqueued event information set.
Parameters:
null
if
the information has not been retrieved, yet.
null
if the information
has not been retrieved, yet.
null
if
the information has not been retrieved, yet.
null
if the information
has not been retrieved, yet.
Method Details
getEnqueuedTime
public Instant getEnqueuedTime()
Gets the date and time, in UTC, that the last observed event was enqueued in the partition.
Returns:
null
if
the information has not been retrieved, yet.getOffset
public Long getOffset()
Gets the offset of the last observed event enqueued in the partition.
Returns:
null
if the information has not
been retrieved, yet.getRetrievalTime
public Instant getRetrievalTime()
Gets the date and time, in UTC, that the information about the last enqueued event was retrieved.
Returns:
null
if the information has not been retrieved, yet.getSequenceNumber
public Long getSequenceNumber()
Gets the sequence number of the last observed event to be enqueued in the partition.
Returns:
null
if the
information has not been retrieved, yet.Applies to
Azure SDK for Java