/** * @param success Success flag. */ public void complete(boolean success) { onComplete(success, true); }
/** * Cancellation has special meaning for lock futures. It's called then lock must be released on rollback. */ @Override public boolean cancel() { if (inTx()) onError(tx.rollbackException()); return onComplete(false, true); }
err = tx.timedOut() ? tx.timeoutException() : tx.rollbackException(); onComplete(false, false);
onComplete(true, true);
/** {@inheritDoc} */ @Override public boolean onDone(Boolean success, Throwable err) { if (log.isDebugEnabled()) log.debug("Received onDone(..) callback [success=" + success + ", err=" + err + ", fut=" + this + ']'); if (inTx() && cctx.tm().deadlockDetectionEnabled() && (this.err instanceof IgniteTxTimeoutCheckedException || timedOut)) return false; // If locks were not acquired yet, delay completion. if (isDone() || (err == null && success && !checkLocks())) return false; if (err != null && !(err instanceof GridCacheLockTimeoutException)) onError(err); if (err != null) success = false; return onComplete(success, true); }
log.debug("Entry being locked did not pass filter (will not lock): " + entry); onComplete(false, false);
/** * @param success Success flag. */ public void complete(boolean success) { onComplete(success, true); }
/** * Cancellation has special meaning for lock futures. It's called then lock must be released on rollback. */ @Override public boolean cancel() { if (inTx()) onError(tx.rollbackException()); return onComplete(false, true); }
err = tx.timedOut() ? tx.timeoutException() : tx.rollbackException(); onComplete(false, false);
/** {@inheritDoc} */ @Override public boolean onDone(Boolean success, Throwable err) { if (log.isDebugEnabled()) log.debug("Received onDone(..) callback [success=" + success + ", err=" + err + ", fut=" + this + ']'); if (inTx() && cctx.tm().deadlockDetectionEnabled() && (this.err instanceof IgniteTxTimeoutCheckedException || timedOut)) return false; // If locks were not acquired yet, delay completion. if (isDone() || (err == null && success && !checkLocks())) return false; if (err != null && !(err instanceof GridCacheLockTimeoutException)) onError(err); if (err != null) success = false; return onComplete(success, true); }
onComplete(true, true);
log.debug("Entry being locked did not pass filter (will not lock): " + entry); onComplete(false, false);