Class BucketTrySetOperation<V>
- java.lang.Object
-
- org.redisson.transaction.operation.TransactionalOperation
-
- org.redisson.transaction.operation.bucket.BucketTrySetOperation<V>
-
- Type Parameters:
V- value type
public class BucketTrySetOperation<V> extends TransactionalOperation
- Author:
- Nikita Koksharov
-
-
Field Summary
-
Fields inherited from class org.redisson.transaction.operation.TransactionalOperation
codec, name, threadId
-
-
Constructor Summary
Constructors Constructor Description BucketTrySetOperation(String name, String lockName, Codec codec, Object value, long timeToLive, TimeUnit timeUnit, String transactionId, long threadId)BucketTrySetOperation(String name, String lockName, Codec codec, Object value, String transactionId, long threadId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit(CommandAsyncExecutor commandExecutor)StringgetLockName()longgetTimeToLive()TimeUnitgetTimeUnit()ObjectgetValue()voidrollback(CommandAsyncExecutor commandExecutor)-
Methods inherited from class org.redisson.transaction.operation.TransactionalOperation
getCodec, getName, getThreadId
-
-
-
-
Method Detail
-
commit
public void commit(CommandAsyncExecutor commandExecutor)
- Specified by:
commitin classTransactionalOperation
-
rollback
public void rollback(CommandAsyncExecutor commandExecutor)
- Specified by:
rollbackin classTransactionalOperation
-
getValue
public Object getValue()
-
getLockName
public String getLockName()
-
getTimeToLive
public long getTimeToLive()
-
getTimeUnit
public TimeUnit getTimeUnit()
-
-