@Override public void operationComplete(Future<Void> future) throws Exception { if (!future.isSuccess()) { promise.tryFailure(future.cause()); return; } RBatch batch = redisson.createBatch(); RMapAsync<KOut, VOut> resultMap = batch.getMap(resultMapName, objectCodec); resultMap.readAllMapAsync().addListener(new TransferListener<Map<KOut, VOut>>(promise)); resultMap.deleteAsync(); batch.executeAsync(); } });
@Override public void operationComplete(Future<Void> future) throws Exception { if (!future.isSuccess()) { promise.tryFailure(future.cause()); return; } RBatch batch = redisson.createBatch(); RMapAsync<KOut, VOut> resultMap = batch.getMap(resultMapName, objectCodec); resultMap.readAllMapAsync().addListener(new TransferListener<Map<KOut, VOut>>(promise)); resultMap.deleteAsync(); batch.executeAsync(); } });
RBatch batch = redisson.createBatch(); for (InDefinedShape field : fields) { String fieldName = field.getName();
RBatch batch = redisson.createBatch(); for (InDefinedShape field : fields) { String fieldName = field.getName();
@SuppressFBWarnings(justification = "This is intentional to avoid unnecessary sync") protected A getCurrentAsyncCollection() { // avoid synchronization if unnecessary by checking for null outside // synchronized block if (currentAsync == null) { synchronized (this) { // check again within synchronized block if (currentAsync == null) { currentBatch = client.createBatch(BatchOptions.defaults()); currentAsync = initAsyncCollection(currentBatch, setName, codec); } } } return currentAsync; }
@Override public void operationComplete(Future<Void> future) throws Exception { if (!future.isSuccess()) { promise.tryFailure(future.cause()); return; } RBatch batch = redisson.createBatch(); RMapAsync<KOut, VOut> resultMap = batch.getMap(resultMapName, objectCodec); resultMap.readAllMapAsync().addListener(new TransferListener<Map<KOut, VOut>>(promise)); resultMap.deleteAsync(); batch.executeAsync(); } });
RBatch batch = redisson.createBatch(); for (InDefinedShape field : fields) { String fieldName = field.getName();