Package com.google.cloud.storage
Class BlobAppendableUploadConfig
java.lang.Object
com.google.cloud.storage.BlobAppendableUploadConfig
@Immutable
@BetaApi
@TransportCompatibility(GRPC)
public final class BlobAppendableUploadConfig
extends Object
Configuration parameters for an appendable uploads 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.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum providing the possible actions which can be taken during theBlobAppendableUpload.AppendableUploadWriteableByteChannel.close()call. -
Method Summary
Modifier and TypeMethodDescriptionTheBlobAppendableUploadConfig.CloseActionwhich will dictate the behavior ofBlobAppendableUpload.AppendableUploadWriteableByteChannel.close().TheFlushPolicywhich will be used to determine when and how many bytes to flush to GCS.static BlobAppendableUploadConfigof()Default instance factory method.withCloseAction(BlobAppendableUploadConfig.CloseAction closeAction) Return an instance with theCloseActionset to be the specified value.withFlushPolicy(FlushPolicy flushPolicy) Return an instance with theFlushPolicyset to be the specified value.
-
Method Details
-
getFlushPolicy
TheFlushPolicywhich will be used to determine when and how many bytes to flush to GCS.Default:
FlushPolicy.minFlushSize(256 * 1024)- Since:
- 2.51.0 This new api is in preview and is subject to breaking changes.
- See Also:
-
withFlushPolicy
Return an instance with theFlushPolicyset to be the specified value.Default:
FlushPolicy.minFlushSize(256 * 1024)- Since:
- 2.51.0 This new api is in preview and is subject to breaking changes.
- See Also:
-
getCloseAction
TheBlobAppendableUploadConfig.CloseActionwhich will dictate the behavior ofBlobAppendableUpload.AppendableUploadWriteableByteChannel.close().Default:
BlobAppendableUploadConfig.CloseAction.CLOSE_WITHOUT_FINALIZING- Since:
- 2.51.0 This new api is in preview and is subject to breaking changes.
- See Also:
-
withCloseAction
@BetaApi public BlobAppendableUploadConfig withCloseAction(BlobAppendableUploadConfig.CloseAction closeAction) Return an instance with theCloseActionset to be the specified value. Default:BlobAppendableUploadConfig.CloseAction.CLOSE_WITHOUT_FINALIZING- Since:
- 2.51.0 This new api is in preview and is subject to breaking changes.
- See Also:
-
of
Default instance factory method.The
FlushPolicyof this instance is equivalent to the following:BlobAppendableUploadConfig.of() .withFlushPolicy(FlushPolicy.minFlushSize(256 * 1024)) .withCloseAction(CloseAction.CLOSE_WITHOUT_FINALIZING)- Since:
- 2.51.0 This new api is in preview and is subject to breaking changes.
- See Also:
-