From 8accc7df39152c1d44b831688242d07fa1ee2493 Mon Sep 17 00:00:00 2001 From: ylakhdar Date: Wed, 4 Feb 2026 16:41:48 -0500 Subject: [PATCH] add missing constructor --- .../com/coveo/pushapiclient/StreamService.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/main/java/com/coveo/pushapiclient/StreamService.java b/src/main/java/com/coveo/pushapiclient/StreamService.java index cf15268c..86760e31 100644 --- a/src/main/java/com/coveo/pushapiclient/StreamService.java +++ b/src/main/java/com/coveo/pushapiclient/StreamService.java @@ -69,6 +69,23 @@ public StreamService(StreamEnabledSource source, BackoffOptions options) { this(source, options, null, DocumentUploadQueue.getConfiguredBatchSize()); } + /** + * Creates a service to stream your documents to the provided source by interacting with the + * Stream API. + * + *

To perform full document updates or + * deletions, use the {@UpdateStreamService}, since pushing documents with the + * {@StreamService} is equivalent to triggering a full source rebuild. The {@StreamService} can + * also be used for an initial catalog upload. + * + * @param source The source to which you want to send your documents. + * @param options The configuration options for exponential backoff. + * @param userAgents The user agent to use for the requests. + */ + public StreamService(StreamEnabledSource source, BackoffOptions options, String[] userAgents) { + this(source, options, userAgents, DocumentUploadQueue.getConfiguredBatchSize()); + } + /** * Creates a service to stream your documents to the provided source by interacting with the * Stream API.