ServiceOptionsT
- the service options used by the channel to issue RPC requestsEntityT
- the entity this channel writes data to. Possibly with additional
configurationpublic abstract static class BaseWriteChannel.BaseState.Builder<ServiceOptionsT extends ServiceOptions<?,ServiceOptionsT>,EntityT extends Serializable> extends Object
Modifier | Constructor and Description |
---|---|
protected |
Builder(ServiceOptionsT options,
EntityT entity,
String uploadId) |
Modifier and Type | Method and Description |
---|---|
abstract RestorableState<WriteChannel> |
build() |
BaseWriteChannel.BaseState.Builder<ServiceOptionsT,EntityT> |
setBuffer(byte[] buffer) |
BaseWriteChannel.BaseState.Builder<ServiceOptionsT,EntityT> |
setChunkSize(int chunkSize) |
BaseWriteChannel.BaseState.Builder<ServiceOptionsT,EntityT> |
setIsOpen(boolean isOpen) |
BaseWriteChannel.BaseState.Builder<ServiceOptionsT,EntityT> |
setPosition(long position) |
@InternalApi(value="This class should only be extended within google-cloud-java") protected Builder(ServiceOptionsT options, EntityT entity, String uploadId)
public BaseWriteChannel.BaseState.Builder<ServiceOptionsT,EntityT> setPosition(long position)
public BaseWriteChannel.BaseState.Builder<ServiceOptionsT,EntityT> setBuffer(byte[] buffer)
public BaseWriteChannel.BaseState.Builder<ServiceOptionsT,EntityT> setIsOpen(boolean isOpen)
public BaseWriteChannel.BaseState.Builder<ServiceOptionsT,EntityT> setChunkSize(int chunkSize)
public abstract RestorableState<WriteChannel> build()
Copyright © 2019 Google LLC. All rights reserved.