From f534a1a466e043667b02fabf05cb6e0257fb77af Mon Sep 17 00:00:00 2001 From: Michael Grosse Huelsewiesche Date: Tue, 1 Apr 2025 17:44:47 -0400 Subject: [PATCH 1/2] Add example for blocking flush to analytics-java doc --- src/connections/sources/catalog/libraries/server/java/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connections/sources/catalog/libraries/server/java/index.md b/src/connections/sources/catalog/libraries/server/java/index.md index bb5ab58b3c..afe3953297 100644 --- a/src/connections/sources/catalog/libraries/server/java/index.md +++ b/src/connections/sources/catalog/libraries/server/java/index.md @@ -372,7 +372,7 @@ You can also flush on demand. For example, at the end of your program, you'll wa analytics.flush() ``` -Calling this method will notify the client to upload any events in the queue. +Calling this method will notify the client to upload any events in the queue. If you would like a blocking flush, an [example is available](https://github.com/segmentio/analytics-java/blob/master/analytics-sample/src/main/java/sample/BlockingFlush.java). ## How do I gzip requests? From 2b4a69a957f3065920a390f3228e533631dcc20b Mon Sep 17 00:00:00 2001 From: pwseg <86626706+pwseg@users.noreply.github.com> Date: Thu, 3 Apr 2025 10:17:08 -0700 Subject: [PATCH 2/2] minor rewording --- src/connections/sources/catalog/libraries/server/java/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connections/sources/catalog/libraries/server/java/index.md b/src/connections/sources/catalog/libraries/server/java/index.md index afe3953297..4fa5569652 100644 --- a/src/connections/sources/catalog/libraries/server/java/index.md +++ b/src/connections/sources/catalog/libraries/server/java/index.md @@ -372,7 +372,7 @@ You can also flush on demand. For example, at the end of your program, you'll wa analytics.flush() ``` -Calling this method will notify the client to upload any events in the queue. If you would like a blocking flush, an [example is available](https://github.com/segmentio/analytics-java/blob/master/analytics-sample/src/main/java/sample/BlockingFlush.java). +Calling this method notifies the client to upload any events in the queue. If you need a blocking flush implementation, see the [`BlockingFlush` example on GitHub](https://github.com/segmentio/analytics-java/blob/master/analytics-sample/src/main/java/sample/BlockingFlush.java){:target="_blank"}. ## How do I gzip requests?