public void copyChunk() {
    if (!isDone()) {
      try {
        this.rewriteResponse =
            runWithRetries(
                new Callable<RewriteResponse>() {
                  @Override
                  public RewriteResponse call() {
                    return storageRpc.continueRewrite(rewriteResponse);
                  }
                },
                serviceOptions.getRetrySettings(),
                StorageImpl.EXCEPTION_HANDLER,
                serviceOptions.getClock());
      } catch (RetryHelper.RetryHelperException e) {
        throw StorageException.translateAndThrow(e);
      }
    }
  }
public void copyChunk ( ) { if ( ! isDone ( ) ) { try { this . rewriteResponse = runWithRetries ( new Callable < RewriteResponse > ( ) { @ Override public RewriteResponse call ( ) { return storageRpc . continueRewrite ( rewriteResponse ) ; } } , serviceOptions . getRetrySettings ( ) , StorageImpl . EXCEPTION_HANDLER , serviceOptions . getClock ( ) ) ; } catch ( RetryHelper . RetryHelperException e ) { throw StorageException . translateAndThrow ( e ) ; } } }
Copies the next chunk of the blob. An RPC is issued only if copy has not finished yet ({@link
#isDone} returns {@code false}).

@throws StorageException upon failure