|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infinispan.commands.tx.AbstractTransactionBoundaryCommand
org.infinispan.commands.control.LockControlCommand
public class LockControlCommand
LockControlCommand is a command that enables distributed locking across infinispan nodes.
For more details refer to: https://jira.jboss.org/jira/browse/ISPN-70 https://jira.jboss.org/jira/browse/ISPN-48
| Field Summary | |
|---|---|
static int |
COMMAND_ID
|
| Fields inherited from class org.infinispan.commands.tx.AbstractTransactionBoundaryCommand |
|---|
cacheName, globalTx, icc, invoker, txTable |
| Constructor Summary | |
|---|---|
LockControlCommand()
|
|
LockControlCommand(Collection<Object> keys,
String cacheName)
|
|
LockControlCommand(Collection<Object> keys,
String cacheName,
boolean implicit)
|
|
| Method Summary | |
|---|---|
Object |
acceptVisitor(InvocationContext ctx,
Visitor visitor)
Accept a visitor, and return the result of accepting this visitor. |
void |
attachGlobalTransaction(GlobalTransaction gtx)
|
boolean |
equals(Object o)
|
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming. |
Set<Object> |
getKeys()
|
Object[] |
getParameters()
Used by marshallers to stream this command across a network |
Object |
getSingleKey()
|
int |
hashCode()
|
boolean |
isExplicit()
|
boolean |
isImplicit()
|
boolean |
multipleKeys()
|
Object |
perform(InvocationContext ignored)
Performs the primary function of the command. |
void |
replaceKey(Object oldKey,
Object replacement)
|
void |
replaceKeys(Map<Object,Object> replacements)
|
void |
setParameters(int commandId,
Object[] args)
Used by the CommandsFactory to create a command from raw data read off a stream. |
String |
toString()
|
| Methods inherited from class org.infinispan.commands.tx.AbstractTransactionBoundaryCommand |
|---|
getCacheName, getGlobalTransaction, init, setCacheName, shouldInvoke |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int COMMAND_ID
| Constructor Detail |
|---|
public LockControlCommand()
public LockControlCommand(Collection<Object> keys,
String cacheName)
public LockControlCommand(Collection<Object> keys,
String cacheName,
boolean implicit)
| Method Detail |
|---|
public void attachGlobalTransaction(GlobalTransaction gtx)
public Set<Object> getKeys()
public void replaceKey(Object oldKey,
Object replacement)
public void replaceKeys(Map<Object,Object> replacements)
public boolean multipleKeys()
public Object getSingleKey()
public boolean isImplicit()
public boolean isExplicit()
public Object acceptVisitor(InvocationContext ctx,
Visitor visitor)
throws Throwable
VisitableCommand
ctx - invocation contextvisitor - visitor to accept
Throwable - in the event of problems
public Object perform(InvocationContext ignored)
throws Throwable
ReplicableCommand
perform in interface ReplicableCommandperform in class AbstractTransactionBoundaryCommandignored - invocation context
Throwable - in the event of problems.public byte getCommandId()
ReplicableCommand
public Object[] getParameters()
ReplicableCommand
getParameters in interface ReplicableCommandgetParameters in class AbstractTransactionBoundaryCommand
public void setParameters(int commandId,
Object[] args)
ReplicableCommandCommandsFactory to create a command from raw data read off a stream.
setParameters in interface ReplicableCommandsetParameters in class AbstractTransactionBoundaryCommandcommandId - 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 boolean equals(Object o)
equals in class AbstractTransactionBoundaryCommandpublic int hashCode()
hashCode in class AbstractTransactionBoundaryCommandpublic String toString()
toString in class AbstractTransactionBoundaryCommand
|
Google Analytics | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||