public void save() { if (map == null) { map = redissonManager.getMap(id); } Map<String, Object> newMap = new HashMap<String, Object>(); newMap.put(CREATION_TIME_ATTR, creationTime); newMap.put(LAST_ACCESSED_TIME_ATTR, lastAccessedTime); newMap.put(THIS_ACCESSED_TIME_ATTR, thisAccessedTime); newMap.put(MAX_INACTIVE_INTERVAL_ATTR, maxInactiveInterval); newMap.put(IS_VALID_ATTR, isValid); newMap.put(IS_NEW_ATTR, isNew); if (attrs != null) { for (Entry<String, Object> entry : attrs.entrySet()) { newMap.put(entry.getKey(), entry.getValue()); } } map.putAll(newMap); if (readMode == ReadMode.MEMORY) { topic.publish(createPutAllMessage(newMap)); } expireSession(); }
public void save() { if (map == null) { map = redissonManager.getMap(id); } Map<String, Object> newMap = new HashMap<String, Object>(); newMap.put(CREATION_TIME_ATTR, creationTime); newMap.put(LAST_ACCESSED_TIME_ATTR, lastAccessedTime); newMap.put(THIS_ACCESSED_TIME_ATTR, thisAccessedTime); newMap.put(MAX_INACTIVE_INTERVAL_ATTR, maxInactiveInterval); newMap.put(IS_VALID_ATTR, isValid); newMap.put(IS_NEW_ATTR, isNew); if (attrs != null) { for (Entry<String, Object> entry : attrs.entrySet()) { newMap.put(entry.getKey(), entry.getValue()); } } map.putAll(newMap); if (readMode == ReadMode.MEMORY) { topic.publish(createPutAllMessage(newMap)); } expireSession(); }
public void save() { if (map == null) { map = redissonManager.getMap(id); } Map<String, Object> newMap = new HashMap<String, Object>(); newMap.put(CREATION_TIME_ATTR, creationTime); newMap.put(LAST_ACCESSED_TIME_ATTR, lastAccessedTime); newMap.put(THIS_ACCESSED_TIME_ATTR, thisAccessedTime); newMap.put(MAX_INACTIVE_INTERVAL_ATTR, maxInactiveInterval); newMap.put(IS_VALID_ATTR, isValid); newMap.put(IS_NEW_ATTR, isNew); if (attrs != null) { for (Entry<String, Object> entry : attrs.entrySet()) { newMap.put(entry.getKey(), entry.getValue()); } } map.putAll(newMap); if (readMode == ReadMode.MEMORY) { topic.publish(createPutAllMessage(newMap)); } expireSession(); }
public void save() { if (map == null) { map = redissonManager.getMap(id); } Map<String, Object> newMap = new HashMap<String, Object>(); newMap.put(CREATION_TIME_ATTR, creationTime); newMap.put(LAST_ACCESSED_TIME_ATTR, lastAccessedTime); newMap.put(THIS_ACCESSED_TIME_ATTR, thisAccessedTime); newMap.put(MAX_INACTIVE_INTERVAL_ATTR, maxInactiveInterval); newMap.put(IS_VALID_ATTR, isValid); newMap.put(IS_NEW_ATTR, isNew); if (attrs != null) { for (Entry<String, Object> entry : attrs.entrySet()) { newMap.put(entry.getKey(), entry.getValue()); } } map.putAll(newMap); if (readMode == ReadMode.MEMORY) { topic.publish(createPutAllMessage(newMap)); } expireSession(); }
public void delete() { if (map == null) { map = redissonManager.getMap(id); } map.delete(); if (readMode == ReadMode.MEMORY) { topic.publish(new AttributesClearMessage(redissonManager.getNodeId(), getId())); } map = null; }
public void delete() { if (map == null) { map = redissonManager.getMap(id); } map.delete(); if (readMode == ReadMode.MEMORY) { topic.publish(new AttributesClearMessage(redissonManager.getNodeId(), getId())); } map = null; }
public void delete() { if (map == null) { map = redissonManager.getMap(id); } map.delete(); if (readMode == ReadMode.MEMORY) { topic.publish(new AttributesClearMessage(redissonManager.getNodeId(), getId())); } map = null; }
public void delete() { if (map == null) { map = redissonManager.getMap(id); } map.delete(); if (readMode == ReadMode.MEMORY) { topic.publish(new AttributesClearMessage(redissonManager.getNodeId(), getId())); } map = null; }
public void save() { if (map == null) { map = redissonManager.getMap(id); } Map<String, Object> newMap = new HashMap<String, Object>(); newMap.put(CREATION_TIME_ATTR, creationTime); newMap.put(LAST_ACCESSED_TIME_ATTR, lastAccessedTime); newMap.put(THIS_ACCESSED_TIME_ATTR, thisAccessedTime); newMap.put(MAX_INACTIVE_INTERVAL_ATTR, maxInactiveInterval); newMap.put(IS_VALID_ATTR, isValid); newMap.put(IS_NEW_ATTR, isNew); if (attrs != null) { for (Entry<String, Object> entry : attrs.entrySet()) { newMap.put(entry.getKey(), entry.getValue()); } } map.putAll(newMap); if (readMode == ReadMode.MEMORY) { topic.publish(createPutAllMessage(newMap)); } expireSession(); }
public void delete() { if (map == null) { map = redissonManager.getMap(id); } map.delete(); if (readMode == ReadMode.MEMORY) { topic.publish(new AttributesClearMessage(redissonManager.getNodeId(), getId())); } map = null; }