Class AddCacheOperation
- java.lang.Object
-
- org.redisson.transaction.operation.TransactionalOperation
-
- org.redisson.transaction.operation.set.SetOperation
-
- org.redisson.transaction.operation.set.AddCacheOperation
-
public class AddCacheOperation extends SetOperation
- Author:
- Nikita Koksharov
-
-
Field Summary
-
Fields inherited from class org.redisson.transaction.operation.TransactionalOperation
codec, name, threadId
-
-
Constructor Summary
Constructors Constructor Description AddCacheOperation(String name, Codec codec, Object value, long ttl, TimeUnit timeUnit, String transactionId, long threadId)
AddCacheOperation(RObject set, Object value, long ttl, TimeUnit timeUnit, String transactionId, long threadId)
AddCacheOperation(RObject set, Object value, String transactionId, long threadId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commit(CommandAsyncExecutor commandExecutor)
TimeUnit
getTimeUnit()
long
getTTL()
Object
getValue()
void
rollback(CommandAsyncExecutor commandExecutor)
-
Methods inherited from class org.redisson.transaction.operation.set.SetOperation
getLock, getLock
-
Methods inherited from class org.redisson.transaction.operation.TransactionalOperation
getCodec, getName, getThreadId
-
-
-
-
Method Detail
-
commit
public void commit(CommandAsyncExecutor commandExecutor)
- Specified by:
commit
in classTransactionalOperation
-
rollback
public void rollback(CommandAsyncExecutor commandExecutor)
- Specified by:
rollback
in classTransactionalOperation
-
getValue
public Object getValue()
-
getTimeUnit
public TimeUnit getTimeUnit()
-
getTTL
public long getTTL()
-
-