|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.commands.AbstractVisitor org.jboss.cache.interceptors.base.CommandInterceptor org.jboss.cache.interceptors.BaseRpcInterceptor org.jboss.cache.interceptors.OptimisticReplicationInterceptor
@Deprecated public class OptimisticReplicationInterceptor
Replication interceptor for the optimistically locked interceptor chain. Responsible for replicating
state to remote nodes. Unlike its cousin, the ReplicationInterceptor
, this interceptor
only deals with transactional calls. Just like all things to do with Optimistic Locking, it is a requirement that
everything is done in a transaction and the transaction context is available via InvocationContext.getTransaction()
and InvocationContext.getGlobalTransaction()
.
Nested Class Summary | |
---|---|
class |
OptimisticReplicationInterceptor.DataVersionPopulator
Deprecated. |
Field Summary |
---|
Fields inherited from class org.jboss.cache.interceptors.BaseRpcInterceptor |
---|
defaultSynchronous, rpcManager, txTable |
Fields inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
---|
configuration, log, trace |
Constructor Summary | |
---|---|
OptimisticReplicationInterceptor()
Deprecated. |
Method Summary | |
---|---|
protected void |
broadcastCommit(GlobalTransaction gtx,
InvocationContext ctx)
Deprecated. |
protected void |
broadcastPrepare(OptimisticPrepareCommand command,
GlobalTransaction gtx,
InvocationContext ctx)
Deprecated. |
protected void |
broadcastRollback(GlobalTransaction gtx,
InvocationContext ctx)
Deprecated. |
protected TransactionWorkspace |
getTransactionWorkspace(InvocationContext ctx)
Deprecated. |
Object |
handleDefault(InvocationContext ctx,
VisitableCommand command)
Deprecated. The default behaviour of the visitXXX methods, which is to ignore the call and pass the call up to the next interceptor in the chain. |
void |
initialize(CommandsFactory commandsFactory)
Deprecated. |
Object |
visitCommitCommand(InvocationContext ctx,
CommitCommand command)
Deprecated. Visits a CommitCommand. |
Object |
visitOptimisticPrepareCommand(InvocationContext ctx,
OptimisticPrepareCommand command)
Deprecated. Visits a OptimisticPrepareCommand. |
Object |
visitPutForExternalReadCommand(InvocationContext ctx,
PutForExternalReadCommand command)
Deprecated. Visits a PutForExternalReadCommand. |
Object |
visitRollbackCommand(InvocationContext ctx,
RollbackCommand command)
Deprecated. Visits a RollbackCommand. |
Methods inherited from class org.jboss.cache.interceptors.BaseRpcInterceptor |
---|
checkResponses, injectComponents, isLocalModeForced, isSynchronous, isTransactionalAndLocal, replicateCall, replicateCall, replicateCall, replicateCall, skipReplicationOfTransactionMethod |
Methods inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
---|
getNext, hasNext, invokeNextInterceptor, setNext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OptimisticReplicationInterceptor()
Method Detail |
---|
public void initialize(CommandsFactory commandsFactory)
public Object visitOptimisticPrepareCommand(InvocationContext ctx, OptimisticPrepareCommand command) throws Throwable
Visitor
visitOptimisticPrepareCommand
in interface Visitor
visitOptimisticPrepareCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.public Object visitCommitCommand(InvocationContext ctx, CommitCommand command) throws Throwable
Visitor
visitCommitCommand
in interface Visitor
visitCommitCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.public Object visitRollbackCommand(InvocationContext ctx, RollbackCommand command) throws Throwable
Visitor
visitRollbackCommand
in interface Visitor
visitRollbackCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.public Object visitPutForExternalReadCommand(InvocationContext ctx, PutForExternalReadCommand command) throws Throwable
Visitor
visitPutForExternalReadCommand
in interface Visitor
visitPutForExternalReadCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.public Object handleDefault(InvocationContext ctx, VisitableCommand command) throws Throwable
CommandInterceptor
handleDefault
in class CommandInterceptor
ctx
- invocation contextcommand
- command to invoke
Throwable
- in the event of problemsprotected void broadcastPrepare(OptimisticPrepareCommand command, GlobalTransaction gtx, InvocationContext ctx) throws Throwable
Throwable
protected void broadcastCommit(GlobalTransaction gtx, InvocationContext ctx) throws Throwable
Throwable
protected void broadcastRollback(GlobalTransaction gtx, InvocationContext ctx) throws Throwable
Throwable
protected TransactionWorkspace getTransactionWorkspace(InvocationContext ctx) throws CacheException
CacheException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |