/** {@inheritDoc} */ public void cancelTimeout() { if (timeoutCanceled) return; boolean purged = false; if ((timeoutManager != null) && (timeoutTask != null) && (timeoutFuture != null)) purged = timeoutManager.unscheduleTimeout(this); if (!purged && (timeoutFuture != null)) { timeoutFuture.cancel(false); } timeoutCanceled = true; }
for (Iterator i = futures.iterator(); i.hasNext();) { Future f = (Future) i.next(); f.cancel(true);
for (Iterator i = futures.iterator(); i.hasNext();) { Future f = (Future) i.next(); f.cancel(true);
for (Iterator i = futures.iterator(); i.hasNext();) { Future f = (Future) i.next(); f.cancel(true);
private void cancel( Future future ) { if ( !future.cancel( true ) ) { if ( !future.isDone() && !future.isCancelled() ) { log.warn( "Unable to cancel task" ); } else { log.warn( "Task not cancelled (Flags: done: " + future.isDone() + " cancelled: " + future.isCancelled() + ")" ); } } else { log.debug( "Task successfully cancelled" ); } }
private void cancel( Future future ) { if ( !future.cancel( true ) ) { if ( !future.isDone() && !future.isCancelled() ) { log.warn( "Unable to cancel task" ); } else { log.warn( "Task not cancelled (Flags: done: " + future.isDone() + " cancelled: " + future.isCancelled() + ")" ); } } else { log.debug( "Task successfully cancelled" ); } }
for (Iterator i = futures.iterator(); i.hasNext();) { Future f = (Future) i.next(); f.cancel(true);
for (Iterator i = futures.iterator(); i.hasNext();) { Future f = (Future) i.next(); f.cancel(true);
for (Iterator i = futures.iterator(); i.hasNext();) { Future f = (Future) i.next(); f.cancel(true);
((Future)f.next()).cancel(true);
((Future)f.next()).cancel(true);
((Future)f.next()).cancel(true);
timeoutFuture.cancel(false); // Don't interrupt it if it's running. if (Log.isDebug()) Log.getLogger(LOG_CATEGORY).debug("TimeoutManager '" + System.identityHashCode(this) + "' cancelling timeout task for instance '" +