Checkpoint Class
- java.
lang. Object - com.
azure. messaging. eventhubs. models. Checkpoint
- com.
public class Checkpoint
A model class to hold checkpoint data. A checkpoint represents the last successfully processed event for a particular partition of an Event Hub.
Constructor Summary
Constructor | Description |
---|---|
Checkpoint() |
Creates a new instance. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getConsumerGroup()
Gets the consumer group name associated with this checkpoint. |
String |
getEventHubName()
Gets the Event Hub name associated with this checkpoint. |
String |
getFullyQualifiedNamespace()
Returns the fully qualified namespace of the Event Hub. |
Long |
getOffset()
Gets the offset of the last successfully processed event to store as checkpoint. |
String |
getPartitionId()
Gets the partition id associated with this checkpoint. |
Long |
getSequenceNumber()
Gets the sequence number of the last successfully processed event to store as checkpoint. |
Checkpoint |
setConsumerGroup(String consumerGroup)
Sets the consumer group name associated with this checkpoint. |
Checkpoint |
setEventHubName(String eventHubName)
Sets the Event Hub name associated with this checkpoint. |
Checkpoint |
setFullyQualifiedNamespace(String fullyQualifiedNamespace)
Sets the fully qualified namespace of the Event Hub. |
Checkpoint |
setOffset(Long offset)
Sets the offset of the last successfully processed event to store as checkpoint. |
Checkpoint |
setPartitionId(String partitionId)
Sets the partition id associated with this checkpoint. |
Checkpoint |
setSequenceNumber(Long sequenceNumber)
Sets the sequence number of the last successfully processed event to store as checkpoint. |
Methods inherited from java.lang.Object
Constructor Details
Checkpoint
public Checkpoint()
Creates a new instance.
Method Details
getConsumerGroup
public String getConsumerGroup()
Gets the consumer group name associated with this checkpoint.
Returns:
getEventHubName
public String getEventHubName()
Gets the Event Hub name associated with this checkpoint.
Returns:
getFullyQualifiedNamespace
public String getFullyQualifiedNamespace()
Returns the fully qualified namespace of the Event Hub.
Returns:
getOffset
public Long getOffset()
Gets the offset of the last successfully processed event to store as checkpoint.
Returns:
getPartitionId
public String getPartitionId()
Gets the partition id associated with this checkpoint.
Returns:
getSequenceNumber
public Long getSequenceNumber()
Gets the sequence number of the last successfully processed event to store as checkpoint.
Returns:
setConsumerGroup
public Checkpoint setConsumerGroup(String consumerGroup)
Sets the consumer group name associated with this checkpoint.
Parameters:
Returns:
setEventHubName
public Checkpoint setEventHubName(String eventHubName)
Sets the Event Hub name associated with this checkpoint.
Parameters:
Returns:
setFullyQualifiedNamespace
public Checkpoint setFullyQualifiedNamespace(String fullyQualifiedNamespace)
Sets the fully qualified namespace of the Event Hub.
Parameters:
Returns:
setOffset
public Checkpoint setOffset(Long offset)
Sets the offset of the last successfully processed event to store as checkpoint.
Parameters:
Returns:
setPartitionId
public Checkpoint setPartitionId(String partitionId)
Sets the partition id associated with this checkpoint.
Parameters:
Returns:
setSequenceNumber
public Checkpoint setSequenceNumber(Long sequenceNumber)
Sets the sequence number of the last successfully processed event to store as checkpoint.
Parameters:
Returns:
Applies to
Azure SDK for Java