@Deprecated public class OptimisticTxInterceptor extends TxInterceptor
TxInterceptor
.Modifier and Type | Field and Description |
---|---|
protected org.jboss.cache.interceptors.OptimisticTxInterceptor.ModificationsReplayVisitor |
replayVisitor
Deprecated.
|
commandsFactory, optimistic, rpcManager
txManager, txTable
configuration, log, trace
Constructor and Description |
---|
OptimisticTxInterceptor()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected PrepareCommand |
buildPrepareCommand(GlobalTransaction gtx,
List modifications,
boolean onePhaseCommit)
Deprecated.
|
protected void |
cleanupStaleLocks(InvocationContext ctx)
Deprecated.
|
Object |
handleDefault(InvocationContext ctx,
VisitableCommand command)
Deprecated.
Tests if we already have a tx running.
|
protected void |
replayModifications(InvocationContext ctx,
Transaction ltx,
PrepareCommand command)
Deprecated.
Replays modifications by passing them up the interceptor chain.
|
Object |
visitOptimisticPrepareCommand(InvocationContext ctx,
OptimisticPrepareCommand command)
Deprecated.
Visits a OptimisticPrepareCommand.
|
assertTxIsStillValid, attachGtxAndPassUpChain, createLocalTx, dumpStatistics, getCommits, getNumberOfSyncsRegistered, getPrepares, getRollbacks, getStatisticsEnabled, intialize, resetStatistics, runCommitPhase, runPreparePhase, runRollbackPhase, setStatisticsEnabled, visitCommitCommand, visitInvalidateCommand, visitPrepareCommand, visitRollbackCommand
copyInvocationScopeOptionsToTxScope, isRollingBack, setTransactionalContext
getNext, hasNext, invokeNextInterceptor, setNext
visitClearDataCommand, visitCollection, visitCreateNodeCommand, visitEvictFqnCommand, visitExistsNodeCommand, visitGetChildrenNamesCommand, visitGetDataMapCommand, visitGetKeysCommand, visitGetKeyValueCommand, visitGetNodeCommand, visitGravitateDataCommand, visitMoveCommand, visitPutDataMapCommand, visitPutForExternalReadCommand, visitPutKeyValueCommand, visitRemoveKeyCommand, visitRemoveNodeCommand
protected final org.jboss.cache.interceptors.OptimisticTxInterceptor.ModificationsReplayVisitor replayVisitor
public Object visitOptimisticPrepareCommand(InvocationContext ctx, OptimisticPrepareCommand command) throws Throwable
Visitor
visitOptimisticPrepareCommand
in interface Visitor
visitOptimisticPrepareCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visitThrowable
- in the event of problems.public Object handleDefault(InvocationContext ctx, VisitableCommand command) throws Throwable
TxInterceptor
handleDefault
in class TxInterceptor
ctx
- invocation contextcommand
- command to invokeThrowable
- in the event of problemsprotected PrepareCommand buildPrepareCommand(GlobalTransaction gtx, List modifications, boolean onePhaseCommit)
buildPrepareCommand
in class TxInterceptor
protected void replayModifications(InvocationContext ctx, Transaction ltx, PrepareCommand command) throws Throwable
replayModifications
in class TxInterceptor
Throwable
protected void cleanupStaleLocks(InvocationContext ctx) throws Throwable
cleanupStaleLocks
in class TxInterceptor
Throwable
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.