Skip to content

Commit eb8196c

Browse files
authored
feat: add missing constructor (#193)
1 parent 8d0edb8 commit eb8196c

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/main/java/com/coveo/pushapiclient/StreamService.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,23 @@ public StreamService(StreamEnabledSource source, BackoffOptions options) {
6969
this(source, options, null, DocumentUploadQueue.getConfiguredBatchSize());
7070
}
7171

72+
/**
73+
* Creates a service to stream your documents to the provided source by interacting with the
74+
* Stream API.
75+
*
76+
* <p>To perform <a href="https://docs.coveo.com/en/l62e0540">full document updates or
77+
* deletions</a>, use the {@UpdateStreamService}, since pushing documents with the
78+
* {@StreamService} is equivalent to triggering a full source rebuild. The {@StreamService} can
79+
* also be used for an initial catalog upload.
80+
*
81+
* @param source The source to which you want to send your documents.
82+
* @param options The configuration options for exponential backoff.
83+
* @param userAgents The user agent to use for the requests.
84+
*/
85+
public StreamService(StreamEnabledSource source, BackoffOptions options, String[] userAgents) {
86+
this(source, options, userAgents, DocumentUploadQueue.getConfiguredBatchSize());
87+
}
88+
7289
/**
7390
* Creates a service to stream your documents to the provided source by interacting with the
7491
* Stream API.

0 commit comments

Comments
 (0)