You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2024/07/14 05:33:09 UTC
(skywalking-banyandb-java-client) branch doc-fix created (now 6dcfe0d)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a change to branch doc-fix
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb-java-client.git
at 6dcfe0d Add timeout in the doc
This branch includes the following new commits:
new 6dcfe0d Add timeout in the doc
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(skywalking-banyandb-java-client) 01/01: Add timeout in the doc
Posted by wu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch doc-fix
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb-java-client.git
commit 6dcfe0d89191954485af834ca1271889cee6a60d
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Sat Jul 13 22:33:01 2024 -0700
Add timeout in the doc
---
README.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 17f6236..80b7865 100644
--- a/README.md
+++ b/README.md
@@ -247,11 +247,11 @@ segmentIds.forEach(id -> query.or(PairQueryCondition.LongQueryCondition.eq("segm
### Stream
Since grpc bidi streaming is used for write protocol, build a `StreamBulkWriteProcessor` which would handle back-pressure for you.
-Adjust `maxBulkSize`, `flushInterval` and `concurrency` of the consumer in different scenarios to meet requirements.
+Adjust `maxBulkSize`, `flushInterval`, `concurrency` and `timeout` of the consumer in different scenarios to meet requirements.
```java
// build a StreamBulkWriteProcessor from client
-StreamBulkWriteProcessor streamBulkWriteProcessor = client.buildStreamWriteProcessor(maxBulkSize, flushInterval, concurrency);
+StreamBulkWriteProcessor streamBulkWriteProcessor = client.buildStreamWriteProcessor(maxBulkSize, flushInterval, concurrency, timeout);
```
The `StreamBulkWriteProcessor` is thread-safe and thus can be used across threads.
@@ -288,7 +288,7 @@ The writing procedure for `Measure` is similar to the above described process an
```java
// build a MeasureBulkWriteProcessor from client
-MeasureBulkWriteProcessor measureBulkWriteProcessor = client.buildMeasureWriteProcessor(maxBulkSize, flushInterval, concurrency);
+MeasureBulkWriteProcessor measureBulkWriteProcessor = client.buildMeasureWriteProcessor(maxBulkSize, flushInterval, concurrency, timeout);
```
A `BulkWriteProcessor` is created by calling `buildMeasureWriteProcessor`. Then build the `MeasureWrite` object and send with bulk processor,