public class LastEnqueuedEventProperties extends Object
Constructor and Description |
---|
LastEnqueuedEventProperties(Long lastSequenceNumber,
Long lastOffset,
Instant lastEnqueuedTime,
Instant retrievalTime)
Creates an instance with the last enqueued event information set.
|
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.
|
public LastEnqueuedEventProperties(Long lastSequenceNumber, Long lastOffset, Instant lastEnqueuedTime, Instant retrievalTime)
lastSequenceNumber
- Sequence number of the last event to be enqueued in a partition. null
if
the information has not been retrieved, yet.lastOffset
- Offset of the last observed event enqueued in a partition. null
if the information
has not been retrieved, yet.lastEnqueuedTime
- The date and time of the last observed event enqueued in a partition. null
if
the information has not been retrieved, yet.retrievalTime
- The date and time that the information was retrieved. null
if the information
has not been retrieved, yet.public Long getSequenceNumber()
null
if the
information has not been retrieved, yet.public Long getOffset()
null
if the information has not
been retrieved, yet.public Instant getEnqueuedTime()
null
if
the information has not been retrieved, yet.public Instant getRetrievalTime()
null
if the information has not been retrieved, yet.Copyright © 2019 Microsoft Corporation. All rights reserved.