@Override public void clean(KeyColumn target, Instant cutoff, StoreTransaction tx) { Instant b = blocked.putIfAbsent(target, cutoff); if (null == b) { log.info("Enqueuing expired lock cleaner task for target={}, tx={}, cutoff={}", new Object[] { target, tx, cutoff }); try { exec.submit(new StandardLockCleanerRunnable(store, target, tx, serializer, cutoff, times)); } catch (RejectedExecutionException e) { log.debug("Failed to enqueue expired lock cleaner for target={}, tx={}, cutoff={}", new Object[] { target, tx, cutoff, e }); } } else { log.debug("Blocked redundant attempt to enqueue lock cleaner task for target={}, tx={}, cutoff={}", new Object[] { target, tx, cutoff }); } }
@Override public void run() { try { runWithExceptions(); } catch (BackendException e) { log.warn("Expired lock cleaner failed", e); } }
@Override public void run() { try { runWithExceptions(); } catch (BackendException e) { log.warn("Expired lock cleaner failed", e); } }
@Override public void clean(KeyColumn target, long cutoff, StoreTransaction tx) { Long b = blocked.putIfAbsent(target, cutoff); if (null == b) { log.info("Enqueuing expired lock cleaner task for target={}, tx={}, cutoff={}", new Object[] { target, tx, cutoff }); try { exec.submit(new StandardLockCleanerRunnable(store, target, tx, serializer, cutoff)); } catch (RejectedExecutionException e) { log.debug("Failed to enqueue expired lock cleaner for target={}, tx={}, cutoff={}", new Object[] { target, tx, cutoff, e }); } } else { log.debug("Blocked redundant attempt to enqueue lock cleaner task for target={}, tx={}, cutoff={}", new Object[] { target, tx, cutoff }); } }
@Override public void run() { try { runWithExceptions(); } catch (BackendException e) { log.warn("Expired lock cleaner failed", e); } }
@Override public void clean(KeyColumn target, Instant cutoff, StoreTransaction tx) { Instant b = blocked.putIfAbsent(target, cutoff); if (null == b) { log.info("Enqueuing expired lock cleaner task for target={}, tx={}, cutoff={}", new Object[] { target, tx, cutoff }); try { exec.submit(new StandardLockCleanerRunnable(store, target, tx, serializer, cutoff, times)); } catch (RejectedExecutionException e) { log.debug("Failed to enqueue expired lock cleaner for target={}, tx={}, cutoff={}", new Object[] { target, tx, cutoff, e }); } } else { log.debug("Blocked redundant attempt to enqueue lock cleaner task for target={}, tx={}, cutoff={}", new Object[] { target, tx, cutoff }); } }