use of org.redisson.RedissonLock in project redisson by redisson.
the class BucketTrySetOperation method rollback.
@Override
public void rollback(CommandAsyncExecutor commandExecutor) {
RedissonLock lock = new RedissonTransactionalLock(commandExecutor, lockName, transactionId);
lock.unlockAsync(getThreadId());
}
use of org.redisson.RedissonLock in project redisson by redisson.
the class TouchOperation method rollback.
@Override
public void rollback(CommandAsyncExecutor commandExecutor) {
RedissonLock lock = new RedissonLock(commandExecutor, lockName);
lock.unlockAsync(getThreadId());
}
use of org.redisson.RedissonLock in project redisson by redisson.
the class TouchOperation method commit.
@Override
public void commit(CommandAsyncExecutor commandExecutor) {
RKeys keys = new RedissonKeys(commandExecutor);
keys.touchAsync(getName());
RedissonLock lock = new RedissonLock(commandExecutor, lockName);
lock.unlockAsync(getThreadId());
}
use of org.redisson.RedissonLock in project redisson by redisson.
the class UnlinkOperation method commit.
@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(getThreadId());
}
}
use of org.redisson.RedissonLock in project redisson by redisson.
the class BucketCompareAndSetOperation method rollback.
@Override
public void rollback(CommandAsyncExecutor commandExecutor) {
RedissonLock lock = new RedissonTransactionalLock(commandExecutor, lockName, transactionId);
lock.unlockAsync(getThreadId());
}
Aggregations