Package com.google.cloud.storage
Class FlushPolicy
java.lang.Object
com.google.cloud.storage.FlushPolicy
- Direct Known Subclasses:
FlushPolicy.MaxFlushSizeFlushPolicy,FlushPolicy.MinFlushSizeFlushPolicy
Base class used for flush policies which are responsible for configuring an upload channel's
behavior with regard to flushes.
Instances of this class and all its subclasses are immutable and thread safe.
- Since:
- 2.51.0 This new api is in preview and is subject to breaking changes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDefine aFlushPolicywhere a max number of bytes will be flushed to GCS per flush.static final classDefine aFlushPolicywhere a min number of bytes will be required before a flush GCS happens. -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanabstract inthashCode()Default instance factory method forFlushPolicy.MaxFlushSizeFlushPolicy.maxFlushSize(int maxFlushSize) Default instance factory method forFlushPolicy.MinFlushSizeFlushPolicy.minFlushSize(int minFlushSize) abstract StringtoString()
-
Method Details
-
maxFlushSize
Default instance factory method forFlushPolicy.MaxFlushSizeFlushPolicy.- Since:
- 2.51.0 This new api is in preview and is subject to breaking changes.
-
maxFlushSize
- Since:
- 2.51.0 This new api is in preview and is subject to breaking changes.
-
minFlushSize
Default instance factory method forFlushPolicy.MinFlushSizeFlushPolicy.Default: logically equivalent to the following:
FlushPolicy.minFlushSize(4 * 1024 * 1024) .withMaxPendingBytes(16 * 1024 * 1024)- Since:
- 2.51.0 This new api is in preview and is subject to breaking changes.
-
minFlushSize
- Since:
- 2.51.0 This new api is in preview and is subject to breaking changes.
-
equals
-
hashCode
public abstract int hashCode() -
toString
-