@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, spidataContainer, 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, invalidateNodeequals, getFqn, hashCode, initializeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFqnacceptVisitorgetCommandIdprotected GlobalTransaction globalTransaction
public VersionedInvalidateCommand(Fqn fqn)
public VersionedInvalidateCommand()
public void initialize(TransactionManager txManager)
public Object perform(InvocationContext ctx)
InvalidateCommandperform in interface ReplicableCommandperform in class InvalidateCommandctx - invocation contextprotected void createTombstone(InvocationContext ctx)
protected void removeData(NodeSPI n, InvocationContext ctx) throws CacheException
CacheExceptionpublic DataVersion getDataVersion()
getDataVersion in interface VersionedDataCommandpublic void setDataVersion(DataVersion dataVersion)
VersionedDataCommandsetDataVersion in interface VersionedDataCommanddataVersion - to setpublic GlobalTransaction getGlobalTransaction()
getGlobalTransaction in interface WriteCommandpublic void setGlobalTransaction(GlobalTransaction gtx)
WriteCommandsetGlobalTransaction in interface WriteCommandgtx - global transaction to setpublic boolean isVersioned()
VersionedDataCommandisVersioned in interface VersionedDataCommandpublic String toString()
toString in class InvalidateCommandpublic Object[] getParameters()
AbstractDataCommandgetParameters in interface ReplicableCommandgetParameters in class InvalidateCommandpublic void setParameters(int commandId,
Object[] args)
AbstractDataCommandsetParameters in interface ReplicableCommandsetParameters in class InvalidateCommandcommandId - 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.