public class GridCachePerThreadTxCommitBuffer<K,V> extends Object implements GridCacheTxCommitBuffer<K,V>
| Constructor and Description |
|---|
GridCachePerThreadTxCommitBuffer(GridCacheContext<K,V> cctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommittedTx(GridCacheTxEx<K,V> tx)
Adds committed transaction to commit buffer.
|
GridCacheCommittedTxInfo<K,V> |
committedTx(GridCacheVersion originatingTxVer,
UUID nodeId,
long threadId)
Gets transaction from commit buffer.
|
void |
onNodeLeft(UUID nodeId)
Callback called when lode left grid.
|
int |
size() |
public GridCachePerThreadTxCommitBuffer(GridCacheContext<K,V> cctx)
cctx - Cache context.public void addCommittedTx(GridCacheTxEx<K,V> tx)
addCommittedTx in interface GridCacheTxCommitBuffer<K,V>tx - Committed transaction.@Nullable public GridCacheCommittedTxInfo<K,V> committedTx(GridCacheVersion originatingTxVer, UUID nodeId, long threadId)
committedTx in interface GridCacheTxCommitBuffer<K,V>originatingTxVer - Originating tx version.nodeId - Originating node ID.threadId - Originating thread ID.public void onNodeLeft(UUID nodeId)
GridCacheTxCommitBufferonNodeLeft in interface GridCacheTxCommitBuffer<K,V>nodeId - Left node ID.public int size()
size in interface GridCacheTxCommitBuffer<K,V>Copyright © 2014. All rights reserved.