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, getNamepublic BucketGetAndSetOperation(String name, String lockName, Codec codec, Object value, long timeToLive, TimeUnit timeUnit, String transactionId)
public void commit(CommandAsyncExecutor commandExecutor)
commit in class TransactionalOperationpublic void rollback(CommandAsyncExecutor commandExecutor)
rollback in class TransactionalOperationpublic Object getValue()
public String getLockName()
Copyright © 2014–2019 Redisson. All rights reserved.