Skip to content

Commit 0257fe0

Browse files
committed
docs: note FlushPolicy.MaxFlushSizeFlushPolicy has a better option
Further testing is needed to determine if MaxFlushSizeFlushPolicy can/should be removed all together.
1 parent dd946d1 commit 0257fe0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

google-cloud-storage/src/main/java/com/google/cloud/storage/FlushPolicy.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ abstract BufferedWritableByteChannel createBufferedChannel(
108108
*
109109
* <p>Instances of this class are immutable and thread safe.
110110
*
111+
* <p>Instead of this, strategy use {@link FlushPolicy#minFlushSize()}{@code .}{@link
112+
* MinFlushSizeFlushPolicy#withMaxPendingBytes(long) withMaxPendingBytes(long)}
113+
*
111114
* @since 2.51.0 This new api is in preview and is subject to breaking changes.
112115
*/
113116
@Immutable

0 commit comments

Comments
 (0)