예제 #1
0
  @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;
  }
예제 #2
0
 public RedissonBuckets(Redisson redisson, CommandExecutor commandExecutor) {
   this(redisson, commandExecutor.getConnectionManager().getCodec(), commandExecutor);
 }