@Override public String getName() { return map.getName(); }
@Override public String getName() { return map.getName(); }
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 RFuture<Boolean> unlinkAsync(CommandAsyncExecutor commandExecutor) { return deleteAsync(commandExecutor, new UnlinkOperation(map.getName(), null)); }
private void deleteCollection(Set<String> deleted, Iterable<?> objs) { for (Object object : objs) { if (isLiveObject(object)) { if (deleted.add(getMap(object).getName())) { delete(object, deleted); } } } }
public RFuture<Boolean> unlinkAsync(CommandAsyncExecutor commandExecutor) { return deleteAsync(commandExecutor, new UnlinkOperation(map.getName(), null)); }
public RFuture<Boolean> deleteAsync(CommandAsyncExecutor commandExecutor) { return deleteAsync(commandExecutor, new DeleteOperation(map.getName())); }
public RFuture<Boolean> deleteAsync(CommandAsyncExecutor commandExecutor) { return deleteAsync(commandExecutor, new DeleteOperation(map.getName())); }
private void deleteCollection(Set<String> deleted, Iterable<?> objs) { for (Object object : objs) { if (isLiveObject(object)) { if (deleted.add(getMap(object).getName())) { delete(object, deleted); } } } }
@Override public void operationComplete(Future<Boolean> future) throws Exception { if (!future.isSuccess()) { result.tryFailure(future.cause()); return; } operations.add(new TouchOperation(map.getName())); boolean exists = future.getNow(); if (!exists) { for (MapEntry entry : state.values()) { if (entry != MapEntry.NULL) { exists = true; break; } } } result.trySuccess(exists); } });
@Override public void operationComplete(Future<Boolean> future) throws Exception { if (!future.isSuccess()) { result.tryFailure(future.cause()); return; } operations.add(new TouchOperation(map.getName())); boolean exists = future.getNow(); if (!exists) { for (MapEntry entry : state.values()) { if (entry != MapEntry.NULL) { exists = true; break; } } } result.trySuccess(exists); } });
((RObject)obj.getValue()).delete(); } else if (isLiveObject(obj.getValue())) { if (deleted.add(getMap(obj.getValue()).getName())) { delete(obj.getValue(), deleted);
((RObject)obj.getValue()).delete(); } else if (isLiveObject(obj.getValue())) { if (deleted.add(getMap(obj.getValue()).getName())) { delete(obj.getValue(), deleted);
public RFuture<Boolean> touchAsync(CommandAsyncExecutor commandExecutor) { final RPromise<Boolean> result = new RedissonPromise<Boolean>(); if (deleted != null && deleted) { operations.add(new TouchOperation(map.getName())); result.trySuccess(false); return result;
public RFuture<Boolean> touchAsync(CommandAsyncExecutor commandExecutor) { final RPromise<Boolean> result = new RedissonPromise<Boolean>(); if (deleted != null && deleted) { operations.add(new TouchOperation(map.getName())); result.trySuccess(false); return result;