|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.commands.read.AbstractDataCommand org.jboss.cache.commands.write.InvalidateCommand org.jboss.cache.commands.write.OptimisticInvalidateCommand
public class OptimisticInvalidateCommand
Behaves like InvalidateCommand
. Also, potentially throws a cache exception if
data versioning is used and the node in memory has a newer data version than what is passed in.
Field Summary | |
---|---|
protected GlobalTransaction |
globalTransaction
Params. |
Fields inherited from class org.jboss.cache.commands.write.InvalidateCommand |
---|
METHOD_ID, notifier, spi |
Fields inherited from class org.jboss.cache.commands.read.AbstractDataCommand |
---|
dataContainer, fqn |
Constructor Summary | |
---|---|
OptimisticInvalidateCommand()
|
|
OptimisticInvalidateCommand(Fqn fqn)
|
Method Summary | |
---|---|
protected void |
createTombstone(InvocationContext ctx)
|
DataVersion |
getDataVersion()
|
GlobalTransaction |
getGlobalTransaction()
|
Object[] |
getParameters()
Basic versions of these methods |
void |
initialize(TransactionManager txManager)
|
boolean |
isVersioned()
Has data version set? (i.e. |
Object |
perform(InvocationContext ctx)
Performs an invalidation on a specified node |
protected void |
removeData(InvocationContext ctx)
|
void |
rollback()
Reverses a command that has already been invoked. |
void |
setDataVersion(DataVersion dataVersion)
Sets the DataVersion pertaining to this command. |
void |
setGlobalTransaction(GlobalTransaction gtx)
Sets a GlobalTransaction on this command. |
void |
setParameters(int commandId,
Object[] args)
Basic versions of these methods |
String |
toString()
|
Methods inherited from class org.jboss.cache.commands.write.InvalidateCommand |
---|
acceptVisitor, enforceNodeLoading, getCommandId, initialize, invalidateNode |
Methods inherited from class org.jboss.cache.commands.read.AbstractDataCommand |
---|
equals, getFqn, hashCode, initialize |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.cache.commands.DataCommand |
---|
getFqn |
Methods inherited from interface org.jboss.cache.commands.VisitableCommand |
---|
acceptVisitor |
Methods inherited from interface org.jboss.cache.commands.ReplicableCommand |
---|
getCommandId |
Field Detail |
---|
protected GlobalTransaction globalTransaction
Constructor Detail |
---|
public OptimisticInvalidateCommand(Fqn fqn)
public OptimisticInvalidateCommand()
Method Detail |
---|
public void initialize(TransactionManager txManager)
public Object perform(InvocationContext ctx)
InvalidateCommand
perform
in interface ReplicableCommand
perform
in class InvalidateCommand
ctx
- invocation context
protected void createTombstone(InvocationContext ctx)
protected void removeData(InvocationContext ctx) throws CacheException
CacheException
public DataVersion getDataVersion()
getDataVersion
in interface VersionedDataCommand
public void setDataVersion(DataVersion dataVersion)
VersionedDataCommand
setDataVersion
in interface VersionedDataCommand
dataVersion
- to setpublic GlobalTransaction getGlobalTransaction()
getGlobalTransaction
in interface ReversibleCommand
public void setGlobalTransaction(GlobalTransaction gtx)
ReversibleCommand
setGlobalTransaction
in interface ReversibleCommand
gtx
- global transaction to setpublic boolean isVersioned()
VersionedDataCommand
isVersioned
in interface VersionedDataCommand
public String toString()
toString
in class InvalidateCommand
public Object[] getParameters()
AbstractDataCommand
getParameters
in interface ReplicableCommand
getParameters
in class InvalidateCommand
public void setParameters(int commandId, Object[] args)
AbstractDataCommand
setParameters
in interface ReplicableCommand
setParameters
in class InvalidateCommand
commandId
- command id to set. This is usually unused but *could* be used in the event of a command having multiple IDs, such as PutKeyValueCommand
.args
- object array of argspublic void rollback()
ReversibleCommand
rollback
in interface ReversibleCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |