public MapOperation(RMap<?, ?> map, Object key, Object value, Object oldValue, String transactionId) { super(map.getName(), map.getCodec()); this.map = map; this.key = key; this.value = value; this.oldValue = oldValue; this.transactionId = transactionId; }
public MapOperation(RMap<?, ?> map, Object key, Object value, Object oldValue, String transactionId) { super(map.getName(), map.getCodec()); this.map = map; this.key = key; this.value = value; this.oldValue = oldValue; this.transactionId = transactionId; }
public RedissonTransactionalMap(CommandAsyncExecutor commandExecutor, List<TransactionalOperation> operations, long timeout, AtomicBoolean executed, RMap<K, V> innerMap, String transactionId) { super(innerMap.getCodec(), commandExecutor, innerMap.getName(), null, null); this.executed = executed; this.transactionalMap = new BaseTransactionalMap<K, V>(commandExecutor, timeout, operations, innerMap, transactionId); }
public RedissonTransactionalMap(CommandAsyncExecutor commandExecutor, List<TransactionalOperation> operations, long timeout, AtomicBoolean executed, RMap<K, V> innerMap, String transactionId) { super(innerMap.getCodec(), commandExecutor, innerMap.getName(), null, null); this.executed = executed; this.transactionalMap = new BaseTransactionalMap<K, V>(commandExecutor, timeout, operations, innerMap, transactionId); }
public MapOperation(RMap<?, ?> map, Object key, Object value, Object oldValue, String transactionId) { super(map.getName(), map.getCodec()); this.map = map; this.key = key; this.value = value; this.oldValue = oldValue; this.transactionId = transactionId; }
public RedissonTransactionalMap(CommandAsyncExecutor commandExecutor, List<TransactionalOperation> operations, long timeout, AtomicBoolean executed, RMap<K, V> innerMap, String transactionId) { super(innerMap.getCodec(), commandExecutor, innerMap.getName(), null, null); this.executed = executed; this.transactionalMap = new BaseTransactionalMap<K, V>(commandExecutor, timeout, operations, innerMap, transactionId); }
@Override public String changeSessionId() { String id = delegate.changeSessionId(); if (redisson.getConfig().isClusterConfig()) { Map<String, Object> oldState = map.readAllMap(); map.delete(); map = redisson.getMap(keyPrefix + id, map.getCodec()); map.putAll(oldState); } else { map.rename(keyPrefix + id); } return id; }