@Override public <V> RBucketAsync<V> getBucket(String name) { return new RedissonBucket<V>(executorService, name); }
@Override public <V> RBucketAsync<V> getBucket(String name, Codec codec) { return new RedissonBucket<V>(codec, executorService, name); }
@Override public <V> RBucketAsync<V> getBucket(String name, Codec codec) { return new RedissonBucket<V>(codec, executorService, name); }
@Override public <V> RBucketRx<V> getBucket(String name) { return RxProxyBuilder.create(commandExecutor, new RedissonBucket<V>(commandExecutor, name), RBucketRx.class); }
@Override public <V> RBucketReactive<V> getBucket(String name) { return ReactiveProxyBuilder.create(executorService, new RedissonBucket<V>(executorService, name), RBucketReactive.class); }
@Override public <V> RBucket<V> getBucket(String name, Codec codec) { return new RedissonBucket<V>(codec, connectionManager.getCommandExecutor(), name); }
@Override public <V> RBucket<V> getBucket(String name, Codec codec) { return new RedissonBucket<V>(codec, connectionManager.getCommandExecutor(), name); }
@Override public <V> RBucketReactive<V> getBucket(String name, Codec codec) { return ReactiveProxyBuilder.create(executorService, new RedissonBucket<V>(codec, executorService, name), RBucketReactive.class); }
@Override public <V> RBucketRx<V> getBucket(String name) { return RxProxyBuilder.create(executorService, new RedissonBucket<V>(executorService, name), RBucketRx.class); }
@Override public <V> RBucketReactive<V> getBucket(String name) { return ReactiveProxyBuilder.create(commandExecutor, new RedissonBucket<V>(commandExecutor, name), RBucketReactive.class); }
@Override public void commit(CommandAsyncExecutor commandExecutor) { RedissonBucket<V> bucket = new RedissonBucket<V>(codec, commandExecutor, name); bucket.getAndDeleteAsync(); RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); }
@Override public void commit(CommandAsyncExecutor commandExecutor) { RedissonBucket<V> bucket = new RedissonBucket<V>(codec, commandExecutor, name); bucket.getAndSetAsync((V) value); RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); }
@Override public void commit(CommandAsyncExecutor commandExecutor) { RedissonBucket<V> bucket = new RedissonBucket<V>(codec, commandExecutor, name); bucket.getAndDeleteAsync(); RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); }
@Override public void commit(CommandAsyncExecutor commandExecutor) { RedissonBucket<V> bucket = new RedissonBucket<V>(codec, commandExecutor, name); bucket.getAndSetAsync((V) value); RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); }
@Override public void commit(CommandAsyncExecutor commandExecutor) { RedissonBucket<V> bucket = new RedissonBucket<V>(codec, commandExecutor, name); bucket.compareAndSetAsync(expected, value); RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); }
@Override public void commit(CommandAsyncExecutor commandExecutor) { RedissonBucket<V> bucket = new RedissonBucket<V>(codec, commandExecutor, name); bucket.compareAndSetAsync(expected, value); RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); }
@Override public void commit(CommandAsyncExecutor commandExecutor) { RedissonBucket<V> bucket = new RedissonBucket<V>(codec, commandExecutor, name); if (timeToLive != 0) { bucket.setAsync((V) value, timeToLive, timeUnit); } else { bucket.setAsync((V) value); } RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); }
@Override public void commit(CommandAsyncExecutor commandExecutor) { RedissonBucket<V> bucket = new RedissonBucket<V>(codec, commandExecutor, name); if (timeToLive != 0) { bucket.trySetAsync((V) value, timeToLive, timeUnit); } else { bucket.trySetAsync((V) value); } RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); }
@Override public void commit(CommandAsyncExecutor commandExecutor) { RedissonBucket<V> bucket = new RedissonBucket<V>(codec, commandExecutor, name); if (timeToLive != 0) { bucket.trySetAsync((V) value, timeToLive, timeUnit); } else { bucket.trySetAsync((V) value); } RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); }
@Override public void commit(CommandAsyncExecutor commandExecutor) { RedissonBucket<V> bucket = new RedissonBucket<V>(codec, commandExecutor, name); if (timeToLive != 0) { bucket.setAsync((V) value, timeToLive, timeUnit); } else { bucket.setAsync((V) value); } RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); }