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()
CopyWriterisDone()
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 CopyWriterpublic long getBlobSize()
CopyWritergetBlobSize in class CopyWriterpublic boolean isDone()
CopyWritertrue if blob copy has finished, false otherwise.isDone in class CopyWriterpublic long getTotalBytesCopied()
CopyWritergetTotalBytesCopied in class CopyWriterpublic void copyChunk()
CopyWriterCopyWriter.isDone() returns false).copyChunk in class CopyWriterpublic com.google.cloud.RestorableState<CopyWriter> capture()
capture in interface com.google.cloud.Restorable<CopyWriter>capture in class CopyWriterCopyright © 2023 Google LLC. All rights reserved.