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 class
BaseWriteChannel.BaseState.Builder<ServiceOptionsT extends ServiceOptions<?,ServiceOptionsT>,EntityT extends Serializable>
Base builder for a write channel's state.protected static class
BaseWriteChannel.BaseState.ValueHolder
-
Field Summary
Fields Modifier and Type Field Description protected byte[]
buffer
protected int
chunkSize
protected EntityT
entity
protected boolean
isOpen
protected long
position
protected ServiceOptionsT
serviceOptions
protected String
uploadId
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseState(BaseWriteChannel.BaseState.Builder<ServiceOptionsT,EntityT> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
String
toString()
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()
-
-