From 6139642608cc0d16cb89cb6b2e6b2dff843098b1 Mon Sep 17 00:00:00 2001 From: Thomas Darimont Date: Tue, 6 Oct 2026 10:06:04 +0200 Subject: [PATCH] Put the javadoc of setLongPolling back on its method setEndpointRetry was inserted between setLongPolling and its javadoc, so one method had two blocks and the other none. Signed-off-by: Thomas Darimont --- .../org/easyssf/receiver/poll/SsfPoller.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/easyssf-receiver/src/main/java/org/easyssf/receiver/poll/SsfPoller.java b/easyssf-receiver/src/main/java/org/easyssf/receiver/poll/SsfPoller.java index 1fb13a8..4e89576 100644 --- a/easyssf-receiver/src/main/java/org/easyssf/receiver/poll/SsfPoller.java +++ b/easyssf-receiver/src/main/java/org/easyssf/receiver/poll/SsfPoller.java @@ -191,15 +191,6 @@ public void setInitialDelay(Duration initialDelay) { this.initialDelay = initialDelay; } - /** - * Switches to long polling (RFC 8936, section 2.5): the first request of a poll asks - * the transmitter to hold it until SETs are available - * ({@code returnImmediately: false}), and a running poller sends the next request as - * soon as a response was handled. - * @param hold how long the transmitter holds a request, part of the agreement with it - * (section 2.2); the request waits that long plus a margin for the response. - * {@code null} returns to short polling. - */ /** * How soon the poller looks again while the poll endpoint of the stream is not known * yet, one second by default; never longer than the interval. @@ -209,6 +200,15 @@ public void setEndpointRetry(Duration endpointRetry) { this.endpointRetry = endpointRetry; } + /** + * Switches to long polling (RFC 8936, section 2.5): the first request of a poll asks + * the transmitter to hold it until SETs are available + * ({@code returnImmediately: false}), and a running poller sends the next request as + * soon as a response was handled. + * @param hold how long the transmitter holds a request, part of the agreement with it + * (section 2.2); the request waits that long plus a margin for the response. + * {@code null} returns to short polling. + */ public void setLongPolling(Duration hold) { SsfAssert.isTrue(hold == null || hold.isPositive(), "hold must be positive"); this.longPollingHold = hold;