public final class BidiBlobWriteSessionConfig extends BlobWriteSessionConfig implements BlobWriteSessionConfig.GrpcCompatiblePerform a resumable upload, uploading at most bufferSize bytes each flush.
Configuration of buffer size can be performed via BidiBlobWriteSessionConfig#withBufferSize(int).
Implements
com.google.cloud.storage.BlobWriteSessionConfig.GrpcCompatibleMethods
equals(Object o)
public boolean equals(Object o)| Parameter | |
|---|---|
| Name | Description |
o |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
hashCode()
public int hashCode()| 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 |
intThe number of bytes to hold in the buffer before each flush. Must be >=
|
| Returns | |
|---|---|
| Type | Description |
BidiBlobWriteSessionConfig |
The new instance |