Class AbstractMessage

java.lang.Object
com.jme3.network.AbstractMessage
All Implemented Interfaces:
Message
Direct Known Subclasses:
ChannelInfoMessage, ClientRegistrationMessage, CompressedMessage, DisconnectMessage, RemoteMethodCallMessage, RemoteMethodReturnMessage, RemoteObjectDefMessage, RpcCallMessage, RpcResponseMessage, SerializerRegistrationsMessage

public abstract class AbstractMessage extends Object implements Message
Interface implemented by all network messages.
Author:
Paul Speed
  • Constructor Details

    • AbstractMessage

      protected AbstractMessage()
      Creates a reliable message by default.
    • AbstractMessage

      protected AbstractMessage(boolean reliable)
      Creates a message with the specified reliability.
      Parameters:
      reliable - true if the message should be sent reliably
  • Method Details

    • setReliable

      public Message setReliable(boolean f)
      Sets this message to 'reliable' or not and returns this message.
      Specified by:
      setReliable in interface Message
      Parameters:
      f - true to send the message reliably
      Returns:
      this message for chaining
    • isReliable

      public boolean isReliable()
      Indicates which way an outgoing message should be sent or which way an incoming message was sent.
      Specified by:
      isReliable in interface Message
      Returns:
      true if the message is or was sent reliably