/** {@inheritDoc} */ @Override public IgniteInternalCache withExpiryPolicy(ExpiryPolicy plc) { return delegate.get().withExpiryPolicy(plc); }
/** {@inheritDoc} */ @Nullable @Override public Object localExecute(@Nullable IgniteInternalCache cache) { try { assert cache != null : "Failed to get a cache [cacheName=" + cacheName + ", topVer=" + topVer + "]"; if (plc != null) cache = cache.withExpiryPolicy(plc); cache.localLoadCache(p, loadArgs); return null; } catch (IgniteCheckedException e) { throw U.convertException(e); } }
/** {@inheritDoc} */ @Override public IgniteInternalFuture<?> applyx(IgniteInternalCache<Object, Object> c, GridKernalContext ctx) { if (ttl != null && ttl > 0) { Duration duration = new Duration(MILLISECONDS, ttl); c = c.withExpiryPolicy(new ModifiedExpiryPolicy(duration)); } return c.putAsync(key, val); } }
/** {@inheritDoc} */ @Override public IgniteInternalFuture<?> applyx(IgniteInternalCache<Object, Object> c, GridKernalContext ctx) { if (ttl != null && ttl > 0) { Duration duration = new Duration(MILLISECONDS, ttl); c = c.withExpiryPolicy(new ModifiedExpiryPolicy(duration)); } return c.replaceAsync(key, val); } }
/** {@inheritDoc} */ @Override public IgniteInternalFuture<?> applyx(IgniteInternalCache<Object, Object> c, GridKernalContext ctx) { if (ttl != null && ttl > 0) { Duration duration = new Duration(MILLISECONDS, ttl); c = c.withExpiryPolicy(new ModifiedExpiryPolicy(duration)); } return c.putIfAbsentAsync(key, val); } }
/** {@inheritDoc} */ @Override public IgniteInternalFuture<?> applyx(IgniteInternalCache<Object, Object> c, GridKernalContext ctx) { if (ttl != null && ttl > 0) { Duration duration = new Duration(MILLISECONDS, ttl); c = c.withExpiryPolicy(new ModifiedExpiryPolicy(duration)); } return c.putIfAbsentAsync(key, val); } }
new Duration(MILLISECONDS, ctx.configuration().getFinishedJobInfoTtl())); finishedJobMetaPrj = prj.withExpiryPolicy(finishedJobPlc);
/** {@inheritDoc} */ @Nullable @Override public Object localExecute(@Nullable IgniteInternalCache cache) { try { assert cache != null : "Failed to get a cache [cacheName=" + cacheName + ", topVer=" + topVer + "]"; if (plc != null) cache = cache.withExpiryPolicy(plc); cache.localLoadCache(p, loadArgs); return null; } catch (IgniteCheckedException e) { throw U.convertException(e); } }
/** {@inheritDoc} */ @Override public IgniteInternalFuture<?> applyx(IgniteInternalCache<Object, Object> c, GridKernalContext ctx) { if (ttl != null && ttl > 0) { Duration duration = new Duration(MILLISECONDS, ttl); c = c.withExpiryPolicy(new ModifiedExpiryPolicy(duration)); } return c.replaceAsync(key, val); } }
/** {@inheritDoc} */ @Override public IgniteInternalFuture<?> applyx(IgniteInternalCache<Object, Object> c, GridKernalContext ctx) { if (ttl != null && ttl > 0) { Duration duration = new Duration(MILLISECONDS, ttl); c = c.withExpiryPolicy(new ModifiedExpiryPolicy(duration)); } return c.putIfAbsentAsync(key, val); } }
/** {@inheritDoc} */ @Override public IgniteInternalFuture<?> applyx(IgniteInternalCache<Object, Object> c, GridKernalContext ctx) { if (ttl != null && ttl > 0) { Duration duration = new Duration(MILLISECONDS, ttl); c = c.withExpiryPolicy(new ModifiedExpiryPolicy(duration)); } return c.putAsync(key, val); } }
/** {@inheritDoc} */ @Override public IgniteInternalFuture<?> applyx(IgniteInternalCache<Object, Object> c, GridKernalContext ctx) { if (ttl != null && ttl > 0) { Duration duration = new Duration(MILLISECONDS, ttl); c = c.withExpiryPolicy(new ModifiedExpiryPolicy(duration)); } return c.putIfAbsentAsync(key, val); } }