@Deprecated public class VersionedInvalidateCommand extends InvalidateCommand implements VersionedDataCommand
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.
Finally, the data version of the in-memory node is updated to the version being evicted to prevent versions
going out of sync.
Modifier and Type | Field and Description |
---|---|
protected GlobalTransaction |
globalTransaction
Deprecated.
Params.
|
METHOD_ID, notifier, spi
dataContainer, fqn
Constructor and Description |
---|
VersionedInvalidateCommand()
Deprecated.
|
VersionedInvalidateCommand(Fqn fqn)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createTombstone(InvocationContext ctx)
Deprecated.
|
DataVersion |
getDataVersion()
Deprecated.
|
GlobalTransaction |
getGlobalTransaction()
Deprecated.
|
Object[] |
getParameters()
Deprecated.
Basic versions of these methods
|
void |
initialize(TransactionManager txManager)
Deprecated.
|
boolean |
isVersioned()
Deprecated.
Has data version set? (i.e.
|
Object |
perform(InvocationContext ctx)
Deprecated.
Performs an invalidation on a specified node
|
protected void |
removeData(NodeSPI n,
InvocationContext ctx)
Deprecated.
|
void |
setDataVersion(DataVersion dataVersion)
Deprecated.
Sets the DataVersion pertaining to this command.
|
void |
setGlobalTransaction(GlobalTransaction gtx)
Deprecated.
Sets a GlobalTransaction on this command.
|
void |
setParameters(int commandId,
Object[] args)
Deprecated.
Basic versions of these methods
|
String |
toString()
Deprecated.
|
acceptVisitor, enforceNodeLoading, getCommandId, initialize, invalidateNode
equals, getFqn, hashCode, initialize
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFqn
acceptVisitor
getCommandId
protected GlobalTransaction globalTransaction
public VersionedInvalidateCommand(Fqn fqn)
public VersionedInvalidateCommand()
public void initialize(TransactionManager txManager)
public Object perform(InvocationContext ctx)
InvalidateCommand
perform
in interface ReplicableCommand
perform
in class InvalidateCommand
ctx
- invocation contextprotected void createTombstone(InvocationContext ctx)
protected void removeData(NodeSPI n, 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 WriteCommand
public void setGlobalTransaction(GlobalTransaction gtx)
WriteCommand
setGlobalTransaction
in interface WriteCommand
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 argsCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.