MapAddAndGetOperation
, MapCacheFastPutIfAbsentOperation
, MapCacheFastPutOperation
, MapCachePutIfAbsentOperation
, MapCachePutOperation
, MapFastPutIfAbsentOperation
, MapFastPutOperation
, MapFastRemoveOperation
, MapPutIfAbsentOperation
, MapPutOperation
, MapRemoveOperation
, MapReplaceOperation
public abstract class MapOperation extends TransactionalOperation
codec, name
Constructor | Description |
---|---|
MapOperation() |
|
MapOperation(RMap<?,?> map,
Object key,
Object value,
Object oldValue,
String transactionId) |
|
MapOperation(RMap<?,?> map,
Object key,
Object value,
String transactionId) |
Modifier and Type | Method | Description |
---|---|---|
protected abstract void |
commit(RMap<Object,Object> map) |
|
void |
commit(CommandAsyncExecutor commandExecutor) |
|
Object |
getKey() |
|
protected RLock |
getLock(RMap<?,?> map,
CommandAsyncExecutor commandExecutor,
Object key) |
|
RMap<?,?> |
getMap() |
|
protected RMap<Object,Object> |
getMap(CommandAsyncExecutor commandExecutor) |
|
Object |
getOldValue() |
|
Object |
getValue() |
|
void |
rollback(CommandAsyncExecutor commandExecutor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCodec, getName
public Object getKey()
public RMap<?,?> getMap()
public final void commit(CommandAsyncExecutor commandExecutor)
commit
in class TransactionalOperation
protected RMap<Object,Object> getMap(CommandAsyncExecutor commandExecutor)
public void rollback(CommandAsyncExecutor commandExecutor)
rollback
in class TransactionalOperation
protected RLock getLock(RMap<?,?> map, CommandAsyncExecutor commandExecutor, Object key)
public Object getValue()
public Object getOldValue()
Copyright © 2014–2018 The Redisson Project. All rights reserved.