congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DeleteAllKeysInList.cancelOutstandingFutures
Code IndexAdd Tabnine to your IDE (free)

How to use
cancelOutstandingFutures
method
in
org.jclouds.blobstore.strategy.internal.DeleteAllKeysInList

Best Java code snippets using org.jclouds.blobstore.strategy.internal.DeleteAllKeysInList.cancelOutstandingFutures (Showing top 12 results out of 315)

origin: com.amysta.jclouds/jclouds-blobstore

private void waitForCompletion(final Semaphore semaphore,
   final Set<ListenableFuture<Void>> outstandingFutures) {
 // Wait for all futures to complete by waiting to acquire all
 // semaphores.
 try {
   semaphore.acquire(maxParallelDeletes);
   semaphore.release(maxParallelDeletes);
 } catch (InterruptedException e) {
   logger.debug("Interrupted while waiting for blobs to be deleted");
   cancelOutstandingFutures(outstandingFutures);
   Thread.currentThread().interrupt();
 }
}
origin: Nextdoor/bender

private void waitForCompletion(final Semaphore semaphore,
   final Set<ListenableFuture<Void>> outstandingFutures) {
 // Wait for all futures to complete by waiting to acquire all
 // semaphores.
 try {
   semaphore.acquire(maxParallelDeletes);
   semaphore.release(maxParallelDeletes);
 } catch (InterruptedException e) {
   logger.debug("Interrupted while waiting for blobs to be deleted");
   cancelOutstandingFutures(outstandingFutures);
   Thread.currentThread().interrupt();
 }
}
origin: org.apache.jclouds/jclouds-blobstore

private void waitForCompletion(final Semaphore semaphore,
   final Set<ListenableFuture<Void>> outstandingFutures) {
 // Wait for all futures to complete by waiting to acquire all
 // semaphores.
 try {
   semaphore.acquire(maxParallelDeletes);
   semaphore.release(maxParallelDeletes);
 } catch (InterruptedException e) {
   logger.debug("Interrupted while waiting for blobs to be deleted");
   cancelOutstandingFutures(outstandingFutures);
   Thread.currentThread().interrupt();
 }
}
origin: apache/jclouds

private void waitForCompletion(final Semaphore semaphore,
   final Set<ListenableFuture<Void>> outstandingFutures) {
 // Wait for all futures to complete by waiting to acquire all
 // semaphores.
 try {
   semaphore.acquire(maxParallelDeletes);
   semaphore.release(maxParallelDeletes);
 } catch (InterruptedException e) {
   logger.debug("Interrupted while waiting for blobs to be deleted");
   cancelOutstandingFutures(outstandingFutures);
   Thread.currentThread().interrupt();
 }
}
origin: apache/jclouds

cancelOutstandingFutures(outstandingFutures);
throw new BlobRuntimeException("Exceeded maximum retry attempts");
origin: Nextdoor/bender

cancelOutstandingFutures(outstandingFutures);
throw new BlobRuntimeException("Exceeded maximum retry attempts");
origin: org.apache.jclouds/jclouds-blobstore

cancelOutstandingFutures(outstandingFutures);
throw new BlobRuntimeException("Exceeded maximum retry attempts");
origin: com.amysta.jclouds/jclouds-blobstore

cancelOutstandingFutures(outstandingFutures);
throw new BlobRuntimeException("Exceeded maximum retry attempts");
origin: Nextdoor/bender

logger.debug("TimeoutException while deleting blobs: {}",
   te.getMessage());
cancelOutstandingFutures(outstandingFutures);
deleteFailure.set(true);
origin: com.amysta.jclouds/jclouds-blobstore

logger.debug("TimeoutException while deleting blobs: {}",
   te.getMessage());
cancelOutstandingFutures(outstandingFutures);
deleteFailure.set(true);
origin: org.apache.jclouds/jclouds-blobstore

logger.debug("TimeoutException while deleting blobs: {}",
   te.getMessage());
cancelOutstandingFutures(outstandingFutures);
deleteFailure.set(true);
origin: apache/jclouds

logger.debug("TimeoutException while deleting blobs: {}",
   te.getMessage());
cancelOutstandingFutures(outstandingFutures);
deleteFailure.set(true);
org.jclouds.blobstore.strategy.internalDeleteAllKeysInListcancelOutstandingFutures

Popular methods of DeleteAllKeysInList

  • execute
  • parentIsFolder
  • executeOneIteration
    This method goes through all the blobs from a container and attempts to create futures for deleting
  • deleteBlobsAndEmptyDirs
    Delete the blobs from a given PageSet. The PageSet may contain blobs or directories. If there are di
  • deleteDirectory
  • getListing
    Get the object listing from a given container based on the options. For recursive listing of directo
  • getMessage
  • waitForCompletion
  • <init>
  • setMaxErrors

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Reference (javax.naming)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now