Class HttpCopyWriter (2.45.0)

public class HttpCopyWriter extends CopyWriter

Inheritance

java.lang.Object > CopyWriter > HttpCopyWriter

Methods

capture()

public RestorableState<CopyWriter> capture()
Returns
Type Description
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
Type Description
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
Type Description
Blob
Overrides

getTotalBytesCopied()

public long getTotalBytesCopied()

Returns the number of bytes copied.

Returns
Type Description
long
Overrides

isDone()

public boolean isDone()

Returns true if blob copy has finished, false otherwise.

Returns
Type Description
boolean
Overrides