public class AddCacheOperation extends SetOperation
codec, name
Constructor | Description |
---|---|
AddCacheOperation(String name,
Codec codec,
Object value,
long ttl,
TimeUnit timeUnit,
String transactionId) |
|
AddCacheOperation(RObject set,
Object value,
long ttl,
TimeUnit timeUnit,
String transactionId) |
|
AddCacheOperation(RObject set,
Object value,
String transactionId) |
Modifier and Type | Method | Description |
---|---|---|
void |
commit(CommandAsyncExecutor commandExecutor) |
|
TimeUnit |
getTimeUnit() |
|
long |
getTTL() |
|
Object |
getValue() |
|
void |
rollback(CommandAsyncExecutor commandExecutor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLock, getLock
getCodec, getName
public AddCacheOperation(RObject set, Object value, long ttl, TimeUnit timeUnit, String transactionId)
public void commit(CommandAsyncExecutor commandExecutor)
commit
in class TransactionalOperation
public void rollback(CommandAsyncExecutor commandExecutor)
rollback
in class TransactionalOperation
public Object getValue()
public TimeUnit getTimeUnit()
public long getTTL()
Copyright © 2014–2018 The Redisson Project. All rights reserved.