congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • JOptionPane (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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