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.