Class BidiBlobWriteSessionConfig (2.36.1)

public class BidiBlobWriteSessionConfig extends BlobWriteSessionConfig implements BlobWriteSessionConfig.GrpcCompatible

Inheritance

java.lang.Object > BlobWriteSessionConfig > BidiBlobWriteSessionConfig

Implements

com.google.cloud.storage.BlobWriteSessionConfig.GrpcCompatible

Methods

getBufferSize()

public int getBufferSize()

The number of bytes to hold in the buffer before each flush

Default: 16777216 (16 MiB) See Also: #withBufferSize(int)

Returns
Type Description
int

withBufferSize(int bufferSize)

public BidiBlobWriteSessionConfig withBufferSize(int bufferSize)

Create a new instance with the bufferSize set to the specified value.

Default: 16777216 (16 MiB) See Also: #getBufferSize()

Parameter
Name Description
bufferSize int

The number of bytes to hold in the buffer before each flush. Must be >= 262144 (256 KiB)

Returns
Type Description
BidiBlobWriteSessionConfig

The new instance