Package org.hcjf.io.net.messages
Class Message
- java.lang.Object
-
- org.hcjf.io.net.messages.Message
-
- All Implemented Interfaces:
BsonParcelable
- Direct Known Subclasses:
AckMessage,BusyNodeMessage,EncryptedMessage,EvaluateQueryableMessage,EventMessage,ExecuteMessage,GetMetadataMessage,HidePathMessage,InvokeMessage,KeepAliveMessage,LayerInvokeMessage,LoadPluginMessage,LockMessage,LoginMessage,MessageCollection,MethodInvokeMessage,MethodResponseMessage,NodeIdentificationMessage,PublishLayerMessage,PublishObjectMessage,PublishPathMessage,PublishPluginMessage,ResponseMessage,ShutdownMessage,SignalAllMessage,SignalMessage,TestNodeMessage,UnlockMessage
public abstract class Message extends java.lang.Object implements BsonParcelable
- Author:
- javaito.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hcjf.utils.bson.BsonParcelable
BsonParcelable.Builder
-
-
Field Summary
-
Fields inherited from interface org.hcjf.utils.bson.BsonParcelable
MAP_KEYS_FIELD_NAME, MAP_VALUES_FIELD_NAME, PARCELABLE_CLASS_NAME
-
-
Method Summary
Modifier and Type Method Description java.util.UUIDgetId()Returns the id of the message.java.util.Map<java.lang.String,java.lang.Object>getSessionBean()Returns the serialized session instance.java.util.UUIDgetSessionId()Returns the session id for the message.java.lang.LonggetTimestamp()Returns the timestamp of the message.voidsetId(java.util.UUID id)Set the id of the message.voidsetSessionBean(java.util.Map<java.lang.String,java.lang.Object> sessionBean)Set the serialized session instance.voidsetSessionId(java.util.UUID sessionId)Set the session id for the message.voidsetTimestamp(java.lang.Long timestamp)Set the timestamp of the message.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hcjf.utils.bson.BsonParcelable
fromBson, fromBson, fromBson, populate, toBson, toBson, toBson, toBson, typeFromBson
-
-
-
-
Method Detail
-
getId
public final java.util.UUID getId()
Returns the id of the message.- Returns:
- Id of the message.
-
setId
public final void setId(java.util.UUID id)
Set the id of the message.- Parameters:
id- Id of the message.
-
getTimestamp
public final java.lang.Long getTimestamp()
Returns the timestamp of the message.- Returns:
- Timestamp of the message.
-
setTimestamp
public final void setTimestamp(java.lang.Long timestamp)
Set the timestamp of the message.- Parameters:
timestamp- Timestamp of the message.
-
getSessionId
public final java.util.UUID getSessionId()
Returns the session id for the message.- Returns:
- Session id.
-
setSessionId
public final void setSessionId(java.util.UUID sessionId)
Set the session id for the message.- Parameters:
sessionId- Session id.
-
getSessionBean
public java.util.Map<java.lang.String,java.lang.Object> getSessionBean()
Returns the serialized session instance.- Returns:
- Serialized session instance.
-
setSessionBean
public void setSessionBean(java.util.Map<java.lang.String,java.lang.Object> sessionBean)
Set the serialized session instance.- Parameters:
sessionBean- Serialized session instance.
-
-