| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | |
| | | 6 | | namespace Azure.Messaging.EventHubs.Primitives |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// The set of information for describing the status of the partition ownership between <see cref="EventProcessor{ |
| | | 10 | | /// instances cooperating for distribution of processing for a given Event Hub. |
| | | 11 | | /// </summary> |
| | | 12 | | /// |
| | | 13 | | /// <seealso cref="EventProcessor{TPartition}" /> |
| | | 14 | | /// |
| | | 15 | | public class EventProcessorPartitionOwnership |
| | | 16 | | { |
| | | 17 | | /// <summary> |
| | | 18 | | /// The fully qualified Event Hubs namespace this ownership is associated with. This |
| | | 19 | | /// is likely to be similar to <c>{yournamespace}.servicebus.windows.net</c>. |
| | | 20 | | /// </summary> |
| | | 21 | | /// |
| | 2520 | 22 | | public string FullyQualifiedNamespace { get; set; } |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// The name of the specific Event Hub this ownership is associated with, relative |
| | | 26 | | /// to the Event Hubs namespace that contains it. |
| | | 27 | | /// </summary> |
| | | 28 | | /// |
| | 2516 | 29 | | public string EventHubName { get; set; } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// The name of the consumer group this ownership is associated with. |
| | | 33 | | /// </summary> |
| | | 34 | | /// |
| | 2512 | 35 | | public string ConsumerGroup { get; set; } |
| | | 36 | | |
| | | 37 | | /// <summary> |
| | | 38 | | /// The identifier of the associated <see cref="EventProcessor{TPartition}" /> instance. |
| | | 39 | | /// </summary> |
| | | 40 | | /// |
| | 4650 | 41 | | public string OwnerIdentifier { get; set; } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// The identifier of the Event Hub partition this ownership is associated with. |
| | | 45 | | /// </summary> |
| | | 46 | | /// |
| | 5306 | 47 | | public string PartitionId { get; set; } |
| | | 48 | | |
| | | 49 | | /// <summary> |
| | | 50 | | /// The date and time, in UTC, that the last update was made to this ownership. |
| | | 51 | | /// </summary> |
| | | 52 | | /// |
| | 1486 | 53 | | public DateTimeOffset LastModifiedTime { get; set; } |
| | | 54 | | |
| | | 55 | | /// <summary> |
| | | 56 | | /// The version metadata needed to update this ownership. |
| | | 57 | | /// </summary> |
| | | 58 | | /// |
| | 2160 | 59 | | public string Version { get; set; } |
| | | 60 | | } |
| | | 61 | | } |