Class RpcCallMessage

java.lang.Object
com.jme3.network.AbstractMessage
com.jme3.network.service.rpc.msg.RpcCallMessage
All Implemented Interfaces:
Message

public class RpcCallMessage extends AbstractMessage
Used internally to send RPC call information to the other end of a connection for execution.
Author:
Paul Speed
  • Constructor Details

    • RpcCallMessage

      public RpcCallMessage()
      Creates an empty RPC call message for serialization.
    • RpcCallMessage

      public RpcCallMessage(long msgId, byte channel, short objId, short procId, Object... args)
      Creates an RPC call message.
      Parameters:
      msgId - the RPC message id, or -1 for async calls
      channel - the channel used to send the invocation
      objId - the remote object id
      procId - the remote procedure id
      args - 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

      public Object[] getArguments()
      Returns the invocation arguments.
      Returns:
      the invocation arguments
    • toString

      public String toString()
      Overrides:
      toString in class Object