public class HttpCopyWriter extends CopyWriter
Modifier and Type | Method and Description |
---|---|
com.google.cloud.RestorableState<CopyWriter> |
capture() |
void |
copyChunk()
Copies the next chunk of the blob.
|
long |
getBlobSize()
Returns the size of the blob being copied.
|
Blob |
getResult()
Returns the updated information for the written blob.
|
long |
getTotalBytesCopied()
Returns the number of bytes copied.
|
boolean |
isDone()
Returns
true if blob copy has finished, false otherwise. |
public Blob getResult()
CopyWriter
isDone()
is false
will block until all pending chunks are copied.
This method has the same effect of doing:
while (!copyWriter.isDone()) {
copyWriter.copyChunk();
}
getResult
in class CopyWriter
public long getBlobSize()
CopyWriter
getBlobSize
in class CopyWriter
public boolean isDone()
CopyWriter
true
if blob copy has finished, false
otherwise.isDone
in class CopyWriter
public long getTotalBytesCopied()
CopyWriter
getTotalBytesCopied
in class CopyWriter
public void copyChunk()
CopyWriter
CopyWriter.isDone()
returns false
).copyChunk
in class CopyWriter
public com.google.cloud.RestorableState<CopyWriter> capture()
capture
in interface com.google.cloud.Restorable<CopyWriter>
capture
in class CopyWriter
Copyright © 2023 Google LLC. All rights reserved.