|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.blocks.MethodCall org.jboss.cache.marshall.MethodCall
ReplicableCommand
instances. Will be removed in 3.X.
@Deprecated public class MethodCall
An extension of the JGroups MethodCall class. The reason for this subclass is a minor optimisation in the way method IDs are dealt with. The JGroups class of the same name uses a short as a method id, which is more efficient as far as network streaming is concerned.
However, JBossCache uses this id for a lot of == and switch comparisons. Java, being an integer oriented virtual machine, goes through a lot of extra steps when performing such simple comparisons or arithmetic on non-integer numeric types. See http://www.liemur.com/Articles/FineTuningJavaCode-IntOrientedMachine.html Thanks to Elias Ross/genman for this info.
Field Summary |
---|
Fields inherited from class org.jgroups.blocks.MethodCall |
---|
args, ID, log, method, METHOD, method_id, method_name, mode, OLD, payload, signature, SIGNATURE, types, TYPES |
Constructor Summary | |
---|---|
|
MethodCall()
Deprecated. |
protected |
MethodCall(Method method,
int methodIdInteger,
Object... arguments)
Deprecated. |
protected |
MethodCall(Method method,
Object... arguments)
Deprecated. |
Method Summary | |
---|---|
short |
getId()
Deprecated. |
int |
getMethodId()
Deprecated. |
boolean |
isOnePhaseCommitPrepareMehod()
Deprecated. This only works for prepare() and optimisticPrepare() method calls. |
void |
setMethodId(int id)
Deprecated. |
String |
toString()
Deprecated. |
Methods inherited from class org.jgroups.blocks.MethodCall |
---|
get, getArgs, getMethod, getMode, getName, invoke, invoke, put, readExternal, setArgs, setId, setMethod, setName, toStringDetails, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MethodCall()
protected MethodCall(Method method, Object... arguments)
protected MethodCall(Method method, int methodIdInteger, Object... arguments)
Method Detail |
---|
public boolean isOnePhaseCommitPrepareMehod()
public void setMethodId(int id)
public int getMethodId()
public short getId()
getId
in class org.jgroups.blocks.MethodCall
public String toString()
toString
in class org.jgroups.blocks.MethodCall
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |