@Override public Future<Boolean> removeAsync(final V value) { EventLoopGroup group = commandExecutor.getConnectionManager().getGroup(); final Promise<Boolean> promise = group.next().newPromise(); group.execute( new Runnable() { @Override public void run() { try { boolean result = remove(value); promise.setSuccess(result); } catch (Exception e) { promise.setFailure(e); } } }); return promise; }
public RedissonBuckets(Redisson redisson, CommandExecutor commandExecutor) { this(redisson, commandExecutor.getConnectionManager().getCodec(), commandExecutor); }