Package com.google.cloud.storage
Class BidiBlobWriteSessionConfig
java.lang.Object
com.google.cloud.storage.BlobWriteSessionConfig
com.google.cloud.storage.BidiBlobWriteSessionConfig
- All Implemented Interfaces:
Serializable
@Immutable
@BetaApi
@TransportCompatibility(GRPC)
public final class BidiBlobWriteSessionConfig
extends BlobWriteSessionConfig
Perform a resumable upload, uploading at most
bufferSize bytes each flush.
Configuration of buffer size can be performed via withBufferSize(int).
- Since:
- 2.34.0 This new api is in preview and is subject to breaking changes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanintThe number of bytes to hold in the buffer before each flushinthashCode()withBufferSize(int bufferSize) Create a new instance with thebufferSizeset to the specified value.
-
Method Details
-
getBufferSize
public int getBufferSize()The number of bytes to hold in the buffer before each flushDefault:
16777216 (16 MiB)- Since:
- 2.34.0 This new api is in preview and is subject to breaking changes.
- See Also:
-
equals
- Specified by:
equalsin classBlobWriteSessionConfig
-
hashCode
public int hashCode()- Specified by:
hashCodein classBlobWriteSessionConfig
-
withBufferSize
Create a new instance with thebufferSizeset to the specified value.Default:
16777216 (16 MiB)- Parameters:
bufferSize- The number of bytes to hold in the buffer before each flush. Must be >=262144 (256 KiB)- Returns:
- The new instance
- Since:
- 2.34.0 This new api is in preview and is subject to breaking changes.
- See Also:
-