public class HttpCopyWriter extends CopyWriter
Methods
capture()
public RestorableState<CopyWriter> capture()
Returns | |
---|---|
Type | Description |
com.google.cloud.RestorableState<CopyWriter> |
copyChunk()
public void copyChunk()
Copies the next chunk of the blob. An RPC is issued only if copy has not finished yet (#isDone returns false
).
getBlobSize()
public long getBlobSize()
Returns the size of the blob being copied.
Returns | |
---|---|
Type | Description |
long |
getResult()
public Blob getResult()
Returns the updated information for the written blob. Calling this method when isDone()
is false
will block until all pending chunks are copied.
This method has the same effect of doing:
while (!copyWriter.isDone()) {
copyWriter.copyChunk();
}
Returns | |
---|---|
Type | Description |
Blob |
getTotalBytesCopied()
public long getTotalBytesCopied()
Returns the number of bytes copied.
Returns | |
---|---|
Type | Description |
long |
isDone()
public boolean isDone()
Returns true
if blob copy has finished, false
otherwise.
Returns | |
---|---|
Type | Description |
boolean |