V
- value typepublic class BucketGetAndSetOperation<V> extends TransactionalOperation
codec, name
Constructor and Description |
---|
BucketGetAndSetOperation(String name,
String lockName,
Codec codec,
Object value,
long timeToLive,
TimeUnit timeUnit,
String transactionId) |
BucketGetAndSetOperation(String name,
String lockName,
Codec codec,
Object value,
String transactionId) |
Modifier and Type | Method and Description |
---|---|
void |
commit(CommandAsyncExecutor commandExecutor) |
String |
getLockName() |
Object |
getValue() |
void |
rollback(CommandAsyncExecutor commandExecutor) |
getCodec, getName
public BucketGetAndSetOperation(String name, String lockName, Codec codec, Object value, long timeToLive, 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 String getLockName()
Copyright © 2014–2020 Redisson. All rights reserved.