protected void expireSession() { if (maxInactiveInterval >= 0) { map.expire(maxInactiveInterval + 60, TimeUnit.SECONDS); } }
protected void expireSession() { if (maxInactiveInterval >= 0) { map.expire(maxInactiveInterval + 60, TimeUnit.SECONDS); } }
protected void expireSession() { if (maxInactiveInterval >= 0) { map.expire(maxInactiveInterval + 60, TimeUnit.SECONDS); } }
protected void expireSession() { if (maxInactiveInterval >= 0) { map.expire(maxInactiveInterval + 60, TimeUnit.SECONDS); } }
private void updateExpiration() { if (delegate.getMaxInactiveIntervalInSeconds() >= 0) { map.expire(delegate.getMaxInactiveIntervalInSeconds(), TimeUnit.SECONDS); } }
private void updateExpiration() { if (delegate.getMaxInactiveIntervalInSeconds() >= 0) { map.expire(delegate.getMaxInactiveIntervalInSeconds(), TimeUnit.SECONDS); } }
@Override public void run() { try { this.codec = (Codec) codecClass.getConstructor().newInstance(); } catch (Exception e) { throw new IllegalArgumentException(e); } Injector.inject(reducer, redisson); RMap<KOut, VOut> map = redisson.getMap(resultMapName); RListMultimap<KOut, VOut> multimap = redisson.getListMultimap(name, codec); for (KOut key : multimap.keySet()) { if (Thread.currentThread().isInterrupted()) { break; } List<VOut> values = multimap.get(key); VOut out = reducer.reduce(key, values.iterator()); map.put(key, out); } if (timeout > 0) { map.expire(timeout, TimeUnit.MILLISECONDS); } multimap.delete(); }
@Override public void run() { try { this.codec = (Codec) codecClass.getConstructor().newInstance(); } catch (Exception e) { throw new IllegalArgumentException(e); } Injector.inject(reducer, redisson); RMap<KOut, VOut> map = redisson.getMap(resultMapName); RListMultimap<KOut, VOut> multimap = redisson.getListMultimap(name, codec); for (KOut key : multimap.keySet()) { if (Thread.currentThread().isInterrupted()) { break; } List<VOut> values = multimap.get(key); VOut out = reducer.reduce(key, values.iterator()); map.put(key, out); } if (timeout > 0) { map.expire(timeout, TimeUnit.MILLISECONDS); } multimap.delete(); }
protected void expireSession() { if (maxInactiveInterval >= 0) { map.expire(maxInactiveInterval + 60, TimeUnit.SECONDS); } }
private void updateExpiration() { if (delegate.getMaxInactiveInterval().getSeconds() >= 0) { map.expire(delegate.getMaxInactiveInterval().getSeconds(), TimeUnit.SECONDS); } }
@Override public void run() { try { this.codec = (Codec) codecClass.getConstructor().newInstance(); } catch (Exception e) { throw new IllegalArgumentException(e); } Injector.inject(reducer, redisson); RMap<KOut, VOut> map = redisson.getMap(resultMapName); RListMultimap<KOut, VOut> multimap = redisson.getListMultimap(name, codec); for (KOut key : multimap.keySet()) { if (Thread.currentThread().isInterrupted()) { break; } List<VOut> values = multimap.get(key); VOut out = reducer.reduce(key, values.iterator()); map.put(key, out); } if (timeout > 0) { map.expire(timeout, TimeUnit.MILLISECONDS); } multimap.delete(); }