@Override public void setLastAccessedTime(long lastAccessedTime) { delegate.setLastAccessedTime(lastAccessedTime); if (map != null) { map.fastPut("session:lastAccessedTime", lastAccessedTime); updateExpiration(); } }
@Override public void setLastAccessedTime(long lastAccessedTime) { delegate.setLastAccessedTime(lastAccessedTime); if (map != null) { map.fastPut("session:lastAccessedTime", lastAccessedTime); updateExpiration(); } }
@Override public void setMaxInactiveIntervalInSeconds(int interval) { delegate.setMaxInactiveIntervalInSeconds(interval); if (map != null) { map.fastPut("session:maxInactiveInterval", interval); updateExpiration(); } }
@Override public void setMaxInactiveIntervalInSeconds(int interval) { delegate.setMaxInactiveIntervalInSeconds(interval); if (map != null) { map.fastPut("session:maxInactiveInterval", interval); updateExpiration(); } }
public void store(RObject ar, String fieldName, RMap<String, Object> liveMap) { Codec codec = ar.getCodec(); if (codec != null) { codecProvider.registerCodec((Class) codec.getClass(), codec); } liveMap.fastPut(fieldName, new RedissonReference(ar.getClass(), ar.getName(), codec)); }
public void store(RObject ar, String fieldName, RMap<String, Object> liveMap) { Codec codec = ar.getCodec(); if (codec != null) { codecProvider.registerCodec((Class) codec.getClass(), codec); } liveMap.fastPut(fieldName, new RedissonReference(ar.getClass(), ar.getName(), codec)); }
private void fastPut(String name, Object value) { map.fastPut(name, value); if (readMode == ReadMode.MEMORY) { try { topic.publish(new AttributeUpdateMessage(redissonManager.getNodeId(), getId(), name, value)); } catch (IOException e) { throw new IllegalStateException(e); } } }
private void fastPut(String name, Object value) { map.fastPut(name, value); if (readMode == ReadMode.MEMORY) { try { topic.publish(new AttributeUpdateMessage(redissonManager.getNodeId(), getId(), name, value)); } catch (IOException e) { throw new IllegalStateException(e); } } }
private void fastPut(String name, Object value) { map.fastPut(name, value); if (readMode == ReadMode.MEMORY) { try { topic.publish(new AttributeUpdateMessage(redissonManager.getNodeId(), getId(), name, value)); } catch (IOException e) { throw new IllegalStateException(e); } } }
private void fastPut(String name, Object value) { map.fastPut(name, value); if (readMode == ReadMode.MEMORY) { try { topic.publish(new AttributeUpdateMessage(redissonManager.getNodeId(), getId(), name, value)); } catch (IOException e) { throw new IllegalStateException(e); } } }
@Override public void put(Object key, Object value) { if (!allowNullValues && value == null) { map.remove(key); return; } value = toStoreValue(value); if (mapCache != null) { mapCache.fastPut(key, value, config.getTTL(), TimeUnit.MILLISECONDS, config.getMaxIdleTime(), TimeUnit.MILLISECONDS); } else { map.fastPut(key, value); } }
@Override public void put(Object key, Object value) { if (!allowNullValues && value == null) { map.remove(key); return; } value = toStoreValue(value); if (mapCache != null) { mapCache.fastPut(key, value, config.getTTL(), TimeUnit.MILLISECONDS, config.getMaxIdleTime(), TimeUnit.MILLISECONDS); } else { map.fastPut(key, value); } }
@Override public void setAttribute(String attributeName, Object attributeValue) { if (attributeValue == null) { removeAttribute(attributeName); return; } delegate.setAttribute(attributeName, attributeValue); if (map != null) { map.fastPut(attributeName, attributeValue); String principalSessionAttr = getSessionAttrNameKey(PRINCIPAL_NAME_INDEX_NAME); String securityPrincipalSessionAttr = getSessionAttrNameKey(SPRING_SECURITY_CONTEXT); if (attributeName.equals(principalSessionAttr) || attributeName.equals(securityPrincipalSessionAttr)) { // remove old if (principalName != null) { RSet<String> set = getPrincipalSet(principalName); set.remove(getId()); } principalName = resolvePrincipal(this); if (principalName != null) { RSet<String> set = getPrincipalSet(principalName); set.add(getId()); } } } }
@Override public void setAttribute(String attributeName, Object attributeValue) { if (attributeValue == null) { removeAttribute(attributeName); return; } delegate.setAttribute(attributeName, attributeValue); if (map != null) { map.fastPut(attributeName, attributeValue); String principalSessionAttr = getSessionAttrNameKey(PRINCIPAL_NAME_INDEX_NAME); String securityPrincipalSessionAttr = getSessionAttrNameKey(SPRING_SECURITY_CONTEXT); if (attributeName.equals(principalSessionAttr) || attributeName.equals(securityPrincipalSessionAttr)) { // remove old if (principalName != null) { RSet<String> set = getPrincipalSet(principalName); set.remove(getId()); } principalName = resolvePrincipal(this); if (principalName != null) { RSet<String> set = getPrincipalSet(principalName); set.add(getId()); } } } }
boolean fastResult = liveMap.fastPut("redisson_live_object", "1"); if (type == RCascadeType.PERSIST && !fastResult) { throw new IllegalArgumentException("This REntity already exists.");
boolean fastResult = liveMap.fastPut("redisson_live_object", "1"); if (type == RCascadeType.PERSIST && !fastResult) { throw new IllegalArgumentException("This REntity already exists.");
public void store(RObject ar, String fieldName, RMap<String, Object> liveMap) { Codec codec = ar.getCodec(); if (codec != null) { codecProvider.registerCodec((Class) codec.getClass(), codec); } liveMap.fastPut(fieldName, new RedissonReference(ar.getClass(), ar.getName(), codec)); }
private void fastPut(String name, Object value) { map.fastPut(name, value); if (readMode == ReadMode.MEMORY) { try { topic.publish(new AttributeUpdateMessage(redissonManager.getNodeId(), getId(), name, value)); } catch (IOException e) { throw new IllegalStateException(e); } } }