From c2ecfa5659874cf93773299e19f351a87a9d6ad5 Mon Sep 17 00:00:00 2001 From: Matt Ellis Date: Fri, 20 Dec 2019 12:16:51 -0800 Subject: [PATCH] Correct documentation of `EventPosition.FromOffset` In #6986 we changed the semantics of `EventPosition.FromOffset` to return an exclusive instead of inclusive offset. However, we missed updating the documentation for the method to match the new semantics. This corrects that issue. --- .../com/azure/messaging/eventhubs/models/EventPosition.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/models/EventPosition.java b/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/models/EventPosition.java index 9bbbc464394a..982f4c282cb8 100644 --- a/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/models/EventPosition.java +++ b/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/models/EventPosition.java @@ -84,7 +84,8 @@ public static EventPosition fromEnqueuedTime(Instant enqueuedDateTime) { } /** - * Corresponds to the event in the partition at the provided offset, inclusive of that event. + * Creates a position to an event in the partition at the provided offset. The event at that offset will not be + * included. Instead, the next event is returned. * *

* The offset is the relative position for event in the context of the stream. The offset should not be considered a