Package de.caluga.morphium.messaging
Class Msg
- java.lang.Object
-
- de.caluga.morphium.messaging.Msg
-
- Direct Known Subclasses:
JMSMessage
public class Msg extends Object
User: Stephan Bösebeck Date: 26.05.12 Time: 15:45 Message class - used by Morphium's own messaging system
Reads from any node, as this produces lots of reads! All Writes will block until all nodes have confirmed the write!t
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMsg.Fields
-
Method Summary
-
-
-
Method Detail
-
getPriority
public int getPriority()
-
setPriority
public Msg setPriority(int priority)
-
isExclusive
public boolean isExclusive()
-
setExclusive
public Msg setExclusive(boolean exclusive)
if true (default) message can only be processed by one system at a time- Parameters:
exclusive-
-
getSenderHost
public String getSenderHost()
-
getDeleteAt
public Date getDeleteAt()
-
getInAnswerTo
public MorphiumId getInAnswerTo()
-
setInAnswerTo
public Msg setInAnswerTo(MorphiumId inAnswerTo)
-
getMsgId
public MorphiumId getMsgId()
-
setMsgId
public Msg setMsgId(MorphiumId msgId)
-
getName
public String getName()
-
getTimestamp
public long getTimestamp()
-
setTimestamp
public Msg setTimestamp(long timestamp)
-
getLockedBy
public String getLockedBy()
-
getLocked
public long getLocked()
-
setLocked
public Msg setLocked(long locked)
-
getSender
public String getSender()
-
getTtl
public long getTtl()
-
setTtl
public Msg setTtl(long ttl)
-
getMsg
public String getMsg()
-
addAdditional
public void addAdditional(String value)
-
removeAdditional
public void removeAdditional(String value)
-
getValue
public String getValue()
-
preStore
public void preStore()
-
isAnswer
public boolean isAnswer()
-
createAnswerMsg
public Msg createAnswerMsg()
-
-