Package com.google.cloud
Class BaseWriteChannel.BaseState<ServiceOptionsT extends ServiceOptions<?,ServiceOptionsT>,EntityT extends Serializable>
- java.lang.Object
-
- com.google.cloud.BaseWriteChannel.BaseState<ServiceOptionsT,EntityT>
-
- All Implemented Interfaces:
RestorableState<WriteChannel>,Serializable
- Enclosing class:
- BaseWriteChannel<ServiceOptionsT extends ServiceOptions<?,ServiceOptionsT>,EntityT extends Serializable>
protected abstract static class BaseWriteChannel.BaseState<ServiceOptionsT extends ServiceOptions<?,ServiceOptionsT>,EntityT extends Serializable> extends Object implements RestorableState<WriteChannel>, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBaseWriteChannel.BaseState.Builder<ServiceOptionsT extends ServiceOptions<?,ServiceOptionsT>,EntityT extends Serializable>Base builder for a write channel's state.protected static classBaseWriteChannel.BaseState.ValueHolder
-
Field Summary
Fields Modifier and Type Field Description protected byte[]bufferprotected intchunkSizeprotected EntityTentityprotected booleanisOpenprotected longpositionprotected ServiceOptionsTserviceOptionsprotected StringuploadId
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseState(BaseWriteChannel.BaseState.Builder<ServiceOptionsT,EntityT> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()StringtoString()protected List<BaseWriteChannel.BaseState.ValueHolder>toStringHelper()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.cloud.RestorableState
restore
-
-
-
-
Field Detail
-
serviceOptions
protected final ServiceOptionsT extends ServiceOptions<?,ServiceOptionsT> serviceOptions
-
entity
protected final EntityT extends Serializable entity
-
uploadId
protected final String uploadId
-
position
protected final long position
-
buffer
protected final byte[] buffer
-
isOpen
protected final boolean isOpen
-
chunkSize
protected final int chunkSize
-
-
Constructor Detail
-
BaseState
@InternalApi("This class should only be extended within google-cloud-java") protected BaseState(BaseWriteChannel.BaseState.Builder<ServiceOptionsT,EntityT> builder)
-
-
Method Detail
-
toStringHelper
protected List<BaseWriteChannel.BaseState.ValueHolder> toStringHelper()
-
-