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
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a reliable message by default.protectedAbstractMessage(boolean reliable) Creates a message with the specified reliability. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates which way an outgoing message should be sent or which way an incoming message was sent.setReliable(boolean f) Sets this message to 'reliable' or not and returns this message.
-
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
Sets this message to 'reliable' or not and returns this message.- Specified by:
setReliablein interfaceMessage- 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:
isReliablein interfaceMessage- Returns:
- true if the message is or was sent reliably
-