| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using Azure.Messaging.EventHubs.Consumer; |
| | 5 | |
|
| | 6 | | namespace Azure.Messaging.EventHubs.Primitives |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// Contains the information to reflect the state of event processing for a given Event Hub partition. |
| | 10 | | /// </summary> |
| | 11 | | /// |
| | 12 | | /// <seealso cref="EventProcessor{TPartition}" /> |
| | 13 | | /// |
| | 14 | | public class EventProcessorCheckpoint |
| | 15 | | { |
| | 16 | | /// <summary> |
| | 17 | | /// The fully qualified Event Hubs namespace this checkpoint is associated with. This |
| | 18 | | /// is likely to be similar to <c>{yournamespace}.servicebus.windows.net</c>. |
| | 19 | | /// </summary> |
| | 20 | | /// |
| 92 | 21 | | public string FullyQualifiedNamespace { get; set; } |
| | 22 | |
|
| | 23 | | /// <summary> |
| | 24 | | /// The name of the specific Event Hub this checkpoint is associated with, relative |
| | 25 | | /// to the Event Hubs namespace that contains it. |
| | 26 | | /// </summary> |
| | 27 | | /// |
| 88 | 28 | | public string EventHubName { get; set; } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// The name of the consumer group this checkpoint is associated with. |
| | 32 | | /// </summary> |
| | 33 | | /// |
| 84 | 34 | | public string ConsumerGroup { get; set; } |
| | 35 | |
|
| | 36 | | /// <summary> |
| | 37 | | /// The identifier of the Event Hub partition this checkpoint is associated with. |
| | 38 | | /// </summary> |
| | 39 | | /// |
| 90 | 40 | | public string PartitionId { get; set; } |
| | 41 | |
|
| | 42 | | /// <summary> |
| | 43 | | /// The starting position within the partition's event stream that this checkpoint is associated with. |
| | 44 | | /// </summary> |
| | 45 | | /// |
| 4 | 46 | | public EventPosition StartingPosition { get; set; } |
| | 47 | | } |
| | 48 | | } |