public final class PartitionProperties extends Object
Modifier and Type | Method and Description |
---|---|
long |
getBeginningSequenceNumber()
Gets the starting sequence number of the partition's message stream.
|
String |
getEventHubName()
Gets the name of the Event Hub that contains the partition.
|
String |
getId()
Gets the identifier of the partition within the Event Hub.
|
String |
getLastEnqueuedOffset()
Gets the offset of the last enqueued message in the partition's stream.
|
long |
getLastEnqueuedSequenceNumber()
Gets the last sequence number of the partition's message stream.
|
Instant |
getLastEnqueuedTime()
Gets the instant, in UTC, of the last enqueued message in the partition's stream.
|
boolean |
isEmpty()
Indicates whether or not the partition is currently empty.
|
public String getEventHubName()
public String getId()
public long getBeginningSequenceNumber()
public long getLastEnqueuedSequenceNumber()
public String getLastEnqueuedOffset()
The offset is the relative position for event in the context of the stream. The offset should not be considered a stable value, as the same offset may refer to a different event as events reach the age limit for retention and are no longer visible within the stream.
public Instant getLastEnqueuedTime()
public boolean isEmpty()
true
if there are no events, and false
otherwise.Copyright © 2019 Microsoft Corporation. All rights reserved.