Class FlushPolicy.MinFlushSizeFlushPolicy

java.lang.Object
com.google.cloud.storage.FlushPolicy
com.google.cloud.storage.FlushPolicy.MinFlushSizeFlushPolicy
Enclosing class:
FlushPolicy

@Immutable @BetaApi public static final class FlushPolicy.MinFlushSizeFlushPolicy extends FlushPolicy
Define a FlushPolicy where a min number of bytes will be required before a flush GCS happens.

If there are not enough bytes to trigger a flush, they will be held in memory until there are enough bytes, or an explicit flush is performed by closing the channel.

Instances of this class are immutable and thread safe.

Since:
2.51.0 This new api is in preview and is subject to breaking changes.