Skip to content

Commit

Permalink
fix: add a deprecation message on StreamWriter (#922)
Browse files Browse the repository at this point in the history
* fix: add a deprecation message on StreamWriter;

* .

* .
  • Loading branch information
yirutang committed Mar 24, 2021
1 parent 5a63ea5 commit fce5289
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,9 @@
import org.threeten.bp.Duration;

/**
* A BigQuery Stream Writer that can be used to write data into BigQuery Table.
*
* <p>This is to be used to managed streaming write when you are working with PENDING streams or
* want to explicitly manage offset. In that most common cases when writing with COMMITTED stream
* without offset, please use a simpler writer {@code DirectWriter}.
* This is to be used to managed streaming write when you are working with PENDING streams or want
* to explicitly manage offset. In that most common cases when writing with COMMITTED stream without
* offset, please use a simpler writer {@code DirectWriter}.
*
* <p>A {@link StreamWrier} provides built-in capabilities to: handle batching of messages;
* controlling memory utilization (through flow control) and request cleanup (only keeps write
Expand All @@ -80,7 +78,10 @@
*
* <p>{@link StreamWriter} will use the credentials set on the channel, which uses application
* default credentials through {@link GoogleCredentials#getApplicationDefault} by default.
*
* @deprecated use {@link #StreamWriterV2()} instead.
*/
@Deprecated
public class StreamWriter implements AutoCloseable {
private static final Logger LOG = Logger.getLogger(StreamWriter.class.getName());

Expand Down

0 comments on commit fce5289

Please sign in to comment.