@Override public RFuture<Void> unlockAsync() { long threadId = Thread.currentThread().getId(); return unlockAsync(threadId); }
@Override public void rollback(CommandAsyncExecutor commandExecutor) { if (lockName != null) { RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); } }
@Override public void rollback(CommandAsyncExecutor commandExecutor) { RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); }
@Override public void rollback(CommandAsyncExecutor commandExecutor) { RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); }
@Override public void rollback(CommandAsyncExecutor commandExecutor) { if (lockName != null) { RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); } }
@Override public void rollback(CommandAsyncExecutor commandExecutor) { RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); }
@Override public void rollback(CommandAsyncExecutor commandExecutor) { RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); }
@Override public void rollback(CommandAsyncExecutor commandExecutor) { if (lockName != null) { RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); } }
@Override public void rollback(CommandAsyncExecutor commandExecutor) { RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); }
@Override public void rollback(CommandAsyncExecutor commandExecutor) { 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) { RKeys keys = new RedissonKeys(commandExecutor); keys.touchAsync(getName()); RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); }
@Override public void commit(CommandAsyncExecutor commandExecutor) { RKeys keys = new RedissonKeys(commandExecutor); keys.unlinkAsync(getName()); if (lockName != null) { 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) { RKeys keys = new RedissonKeys(commandExecutor); keys.unlinkAsync(getName()); if (lockName != null) { 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) { RKeys keys = new RedissonKeys(commandExecutor); keys.deleteAsync(getName()); if (lockName != null) { RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); } }
@Override public void commit(CommandAsyncExecutor commandExecutor) { RKeys keys = new RedissonKeys(commandExecutor); keys.deleteAsync(getName()); if (lockName != null) { RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); } }
@Override public void commit(CommandAsyncExecutor commandExecutor) { RKeys keys = new RedissonKeys(commandExecutor); keys.touchAsync(getName()); RedissonLock lock = new RedissonLock(commandExecutor, lockName); lock.unlockAsync(); }