Class MapOperation
-
- org.redisson.transaction.operation.TransactionalOperation
-
- org.redisson.transaction.operation.map.MapOperation
-
- Direct Known Subclasses:
MapAddAndGetOperation
,MapCacheFastPutIfAbsentOperation
,MapCacheFastPutOperation
,MapCachePutIfAbsentOperation
,MapCachePutOperation
,MapFastPutIfAbsentOperation
,MapFastPutIfExistsOperation
,MapFastPutOperation
,MapFastRemoveOperation
,MapPutIfAbsentOperation
,MapPutIfExistsOperation
,MapPutOperation
,MapRemoveOperation
,MapReplaceOperation
public abstract class MapOperation extends TransactionalOperation
- Author:
- Nikita Koksharov
-
-
Field Summary
-
Fields inherited from class org.redisson.transaction.operation.TransactionalOperation
codec, name, threadId
-
-
Constructor Summary
Constructors Constructor Description MapOperation()
MapOperation(RMap<?,?> map, key, value, oldValue, transactionId, long threadId)
MapOperation(RMap<?,?> map, key, value, transactionId, long threadId)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
,> map)
void
commit(CommandAsyncExecutor commandExecutor)
getKey()
protected RLock
getLock(RMap<?,?> map, CommandAsyncExecutor commandExecutor, key)
RMap<?,?>
getMap()
protected ,>
getMap(CommandAsyncExecutor commandExecutor)
getOldValue()
getValue()
void
rollback(CommandAsyncExecutor commandExecutor)
-
Methods inherited from class org.redisson.transaction.operation.TransactionalOperation
getCodec, getName, getThreadId
-
-
-
-
Method Detail
-
getKey
public getKey()
-
getMap
public RMap<?,?> getMap()
-
commit
public final void commit(CommandAsyncExecutor commandExecutor)
- Specified by:
commit
in classTransactionalOperation
-
getMap
protected ,> getMap(CommandAsyncExecutor commandExecutor)
-
rollback
public void rollback(CommandAsyncExecutor commandExecutor)
- Specified by:
rollback
in classTransactionalOperation
-
getLock
protected RLock getLock(RMap<?,?> map, CommandAsyncExecutor commandExecutor, key)
-
commit
protected abstract void commit(,> map)
-
getValue
public getValue()
-
getOldValue
public getOldValue()
-
-