Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

chore:add javadoc about being called within single thread #856

Merged
merged 4 commits into from Jan 31, 2020
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion gax/src/main/java/com/google/api/gax/batching/Batcher.java
Expand Up @@ -38,10 +38,13 @@
* when triggered by an internal threshold. This is intended to be used for high throughput
* scenarios at the cost of latency.
*
* <p>Batcher instances are not thread safe. To use across different threads, create a new Batcher
* instance per thread.
*
* @param <ElementT> The type of each individual element to be batched.
* @param <ElementResultT> The type of the result for each individual element.
*/
@BetaApi("The surface for batching is not stable yet and may change in the future.")
@BetaApi("The surface for batching is not stable yet and may change in the future.")
rahulKQL marked this conversation as resolved.
Show resolved Hide resolved
public interface Batcher<ElementT, ElementResultT> extends AutoCloseable {

/**
Expand Down