Class HttpCopyWriter (2.36.1)

public class HttpCopyWriter extends CopyWriter

Inheritance

java.lang.Object > CopyWriter > HttpCopyWriter

Methods

capture()

public RestorableState<CopyWriter> capture()
Returns
TypeDescription
com.google.cloud.RestorableState<CopyWriter>
Overrides

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).

Overrides

getBlobSize()

public long getBlobSize()

Returns the size of the blob being copied.

Returns
TypeDescription
long
Overrides

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
TypeDescription
Blob
Overrides

getTotalBytesCopied()

public long getTotalBytesCopied()

Returns the number of bytes copied.

Returns
TypeDescription
long
Overrides

isDone()

public boolean isDone()

Returns true if blob copy has finished, false otherwise.

Returns
TypeDescription
boolean
Overrides