Checkpoint interface
检查点表示用户从事件中心实例中的使用者组的特定分区中成功处理的最后一个事件。
当用户调用 updateCheckpoint() 类上的 PartitionProcessor 方法时,在内部创建 Checkpoint。 然后,它将存储在创建 CheckpointManager时由用户选择的 EventProcessor 实现的存储解决方案中。
用户永远不会期望直接与 Checkpoint 交互。 此接口用于支持 EventProcessor 和 CheckpointManager的内部工作。
属性
| consumer |
使用者组名称 |
| event |
事件中心名称 |
| fully |
完全限定的事件中心命名空间。 这很可能类似于 <yournamespace.servicebus.windows.net> |
| offset | 事件的偏移量。 |
| partition |
事件中心分区的标识符 |
| sequence |
事件的序列号 |
属性详细信息
consumerGroup
使用者组名称
consumerGroup: string
属性值
string
eventHubName
事件中心名称
eventHubName: string
属性值
string
fullyQualifiedNamespace
完全限定的事件中心命名空间。 这很可能类似于 <yournamespace.servicebus.windows.net>
fullyQualifiedNamespace: string
属性值
string
offset
事件的偏移量。
offset: string
属性值
string
partitionId
事件中心分区的标识符
partitionId: string
属性值
string
sequenceNumber
事件的序列号
sequenceNumber: number
属性值
number