|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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. |
java.lang.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. |
java.lang.Object |
visitCommitCommand(InvocationContext ctx,
CommitCommand command)
Deprecated. Visits a CommitCommand. |
java.lang.Object |
visitOptimisticPrepareCommand(InvocationContext ctx,
OptimisticPrepareCommand command)
Deprecated. Visits a OptimisticPrepareCommand. |
java.lang.Object |
visitPutForExternalReadCommand(InvocationContext ctx,
PutForExternalReadCommand command)
Deprecated. Visits a PutForExternalReadCommand. |
java.lang.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 java.lang.Object visitOptimisticPrepareCommand(InvocationContext ctx, OptimisticPrepareCommand command) throws java.lang.Throwable
Visitor
visitOptimisticPrepareCommand
in interface Visitor
visitOptimisticPrepareCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitCommitCommand(InvocationContext ctx, CommitCommand command) throws java.lang.Throwable
Visitor
visitCommitCommand
in interface Visitor
visitCommitCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitRollbackCommand(InvocationContext ctx, RollbackCommand command) throws java.lang.Throwable
Visitor
visitRollbackCommand
in interface Visitor
visitRollbackCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitPutForExternalReadCommand(InvocationContext ctx, PutForExternalReadCommand command) throws java.lang.Throwable
Visitor
visitPutForExternalReadCommand
in interface Visitor
visitPutForExternalReadCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object handleDefault(InvocationContext ctx, VisitableCommand command) throws java.lang.Throwable
CommandInterceptor
handleDefault
in class CommandInterceptor
ctx
- invocation contextcommand
- command to invoke
java.lang.Throwable
- in the event of problemsprotected void broadcastPrepare(OptimisticPrepareCommand command, GlobalTransaction gtx, InvocationContext ctx) throws java.lang.Throwable
java.lang.Throwable
protected void broadcastCommit(GlobalTransaction gtx, InvocationContext ctx) throws java.lang.Throwable
java.lang.Throwable
protected void broadcastRollback(GlobalTransaction gtx, InvocationContext ctx) throws java.lang.Throwable
java.lang.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 |