Package com.google.appengine.tools.cloudstorage.RawGcsService

Examples of com.google.appengine.tools.cloudstorage.RawGcsService.ListItemBatch


      @Override
      public Iterator<ListItem> call() throws IOException {
        if (nextMarker == null) {
          return null;
        }
        ListItemBatch batch;
        try {
          batch = RetryHelper.runWithRetries(new Callable<ListItemBatch>() {
            @Override
            public ListItemBatch call() throws IOException {
              long timeout = options.getRetryParams().getRequestTimeoutMillisForCurrentAttempt();
              String marker = Strings.emptyToNull(nextMarker);
              return raw.list(bucket, prefix, delimiter, marker, MAX_RESULTS_PER_BATCH, timeout);
            }
          }, options.getRetryParams(), exceptionHandler);
        } catch (RetryInterruptedException ex) {
          throw new ClosedByInterruptException();
        } catch (NonRetriableException e) {
          Throwables.propagateIfInstanceOf(e.getCause(), IOException.class);
          throw e;
        }
        nextMarker = batch.getNextMarker();
        return batch.getItems().iterator();
      }
    };
    return new ListResult(batcher);
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.tools.cloudstorage.RawGcsService.ListItemBatch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.