Package com.google.cloud.storage
Class BufferToDiskThenUpload
java.lang.Object
com.google.cloud.storage.BlobWriteSessionConfig
com.google.cloud.storage.BufferToDiskThenUpload
- All Implemented Interfaces:
Serializable
@Immutable
@BetaApi
@TransportCompatibility(GRPC)
public final class BufferToDiskThenUpload
extends BlobWriteSessionConfig
There are scenarios in which disk space is more plentiful than memory space. This new
BlobWriteSessionConfig
allows augmenting an instance of storage to produce BlobWriteSession
s which will buffer to disk rather than holding things in memory.
Once the file on disk is closed, the entire file will then be uploaded to GCS.
-
Method Summary