protected AttributesPutAllMessage createPutAllMessage(Map<String, Object> newMap) { Map<String, Object> map = new HashMap<String, Object>(); for (Entry<String, Object> entry : newMap.entrySet()) { map.put(entry.getKey(), entry.getValue()); } try { return new AttributesPutAllMessage(redissonManager.getNodeId(), getId(), map); } catch (IOException e) { throw new IllegalStateException(e); } }
protected AttributesPutAllMessage createPutAllMessage(Map<String, Object> newMap) { Map<String, Object> map = new HashMap<String, Object>(); for (Entry<String, Object> entry : newMap.entrySet()) { map.put(entry.getKey(), entry.getValue()); } try { return new AttributesPutAllMessage(redissonManager.getNodeId(), getId(), map); } catch (IOException e) { throw new IllegalStateException(e); } }
protected AttributesPutAllMessage createPutAllMessage(Map<String, Object> newMap) { Map<String, Object> map = new HashMap<String, Object>(); for (Entry<String, Object> entry : newMap.entrySet()) { map.put(entry.getKey(), entry.getValue()); } try { return new AttributesPutAllMessage(redissonManager.getNodeId(), getId(), map); } catch (IOException e) { throw new IllegalStateException(e); } }
protected AttributesPutAllMessage createPutAllMessage(Map<String, Object> newMap) { Map<String, Object> map = new HashMap<String, Object>(); for (Entry<String, Object> entry : newMap.entrySet()) { map.put(entry.getKey(), entry.getValue()); } try { return new AttributesPutAllMessage(redissonManager.getNodeId(), getId(), map); } 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); } } }
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 protected void removeAttributeInternal(String name, boolean notify) { super.removeAttributeInternal(name, notify); if (updateMode == UpdateMode.DEFAULT && map != null) { map.fastRemove(name); if (readMode == ReadMode.MEMORY) { topic.publish(new AttributeRemoveMessage(redissonManager.getNodeId(), getId(), name)); } } }
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; }
@Override protected void removeAttributeInternal(String name, boolean notify) { super.removeAttributeInternal(name, notify); if (updateMode == UpdateMode.DEFAULT && map != null) { map.fastRemove(name); if (readMode == ReadMode.MEMORY) { topic.publish(new AttributeRemoveMessage(redissonManager.getNodeId(), getId(), name)); } } }
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; }
@Override protected void removeAttributeInternal(String name, boolean notify) { super.removeAttributeInternal(name, notify); if (updateMode == UpdateMode.DEFAULT && map != null) { map.fastRemove(name); if (readMode == ReadMode.MEMORY) { topic.publish(new AttributeRemoveMessage(redissonManager.getNodeId(), getId(), name)); } } }
@Override protected void removeAttributeInternal(String name, boolean notify) { super.removeAttributeInternal(name, notify); if (updateMode == UpdateMode.DEFAULT && map != null) { map.fastRemove(name); if (readMode == ReadMode.MEMORY) { topic.publish(new AttributeRemoveMessage(redissonManager.getNodeId(), getId(), name)); } } }
protected AttributesPutAllMessage createPutAllMessage(Map<String, Object> newMap) { Map<String, Object> map = new HashMap<String, Object>(); for (Entry<String, Object> entry : newMap.entrySet()) { map.put(entry.getKey(), entry.getValue()); } try { return new AttributesPutAllMessage(redissonManager.getNodeId(), getId(), map); } 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 protected void removeAttributeInternal(String name, boolean notify) { super.removeAttributeInternal(name, notify); if (updateMode == UpdateMode.DEFAULT && map != null) { map.fastRemove(name); if (readMode == ReadMode.MEMORY) { topic.publish(new AttributeRemoveMessage(redissonManager.getNodeId(), getId(), name)); } } }
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; }