Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/main/java/com/coveo/pushapiclient/StreamService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
* <p>To perform <a href="https://docs.coveo.com/en/l62e0540">full document updates or
* deletions</a>, 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.
Expand Down