Class RpcCallMessage
java.lang.Object
com.jme3.network.AbstractMessage
com.jme3.network.service.rpc.msg.RpcCallMessage
- All Implemented Interfaces:
Message
Used internally to send RPC call information to
the other end of a connection for execution.
- Author:
- Paul Speed
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty RPC call message for serialization.RpcCallMessage(long msgId, byte channel, short objId, short procId, Object... args) Creates an RPC call message. -
Method Summary
Modifier and TypeMethodDescriptionObject[]Returns the invocation arguments.byteReturns the channel used for the invocation.longReturns the RPC message id.shortReturns the remote object id.shortReturns the remote procedure id.booleanisAsync()Returns whether this call is asynchronous.toString()Methods inherited from class AbstractMessage
isReliable, setReliable
-
Constructor Details
-
RpcCallMessage
public RpcCallMessage()Creates an empty RPC call message for serialization. -
RpcCallMessage
Creates an RPC call message.- Parameters:
msgId- the RPC message id, or-1for async callschannel- the channel used to send the invocationobjId- the remote object idprocId- the remote procedure idargs- the invocation arguments
-
-
Method Details
-
getMessageId
public long getMessageId()Returns the RPC message id.- Returns:
- the RPC message id
-
getChannel
public byte getChannel()Returns the channel used for the invocation.- Returns:
- the invocation channel
-
isAsync
public boolean isAsync()Returns whether this call is asynchronous.- Returns:
- true if the call does not expect a response
-
getObjectId
public short getObjectId()Returns the remote object id.- Returns:
- the remote object id
-
getProcedureId
public short getProcedureId()Returns the remote procedure id.- Returns:
- the remote procedure id
-
getArguments
-
toString
-