public AttributeUpdateMessage(String nodeId, String sessionId, String name, Object value) throws IOException { super(nodeId, sessionId); this.name = name; this.value = toByteArray(value); }
@Override public Session createEmptySession() { return new RedissonSession(this, readMode, updateMode); }
public void setReadMode(String readMode) { this.readMode = ReadMode.valueOf(readMode); }
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 String getUpdateMode() { return updateMode.toString(); }
public String getReadMode() { return readMode.toString(); }
public void setUpdateMode(String updateMode) { this.updateMode = UpdateMode.valueOf(updateMode); }
public Object getValue(ClassLoader classLoader) throws IOException, ClassNotFoundException { return toObject(classLoader, value); }
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 AttributeUpdateMessage(String nodeId, String sessionId, String name, Object value) throws IOException { super(nodeId, sessionId); this.name = name; this.value = toByteArray(value); }
@Override public Session createEmptySession() { return new RedissonSession(this, readMode, updateMode); }
public void setReadMode(String readMode) { this.readMode = ReadMode.valueOf(readMode); }
public String getUpdateMode() { return updateMode.toString(); }
public String getReadMode() { return readMode.toString(); }
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 AttributeUpdateMessage(String nodeId, String sessionId, String name, Object value) throws IOException { super(nodeId, sessionId); this.name = name; this.value = toByteArray(value); }
@Override public Session createEmptySession() { return new RedissonSession(this, readMode, updateMode); }
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 AttributeUpdateMessage(String nodeId, String sessionId, String name, Object value) throws IOException { super(nodeId, sessionId); this.name = name; this.value = toByteArray(value); }
@Override public Session createEmptySession() { return new RedissonSession(this, readMode, updateMode); }