Class 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

    • 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()
      • setSenderHost

        public Msg setSenderHost​(String senderHost)
      • getDeleteAt

        public Date getDeleteAt()
      • setDeleteAt

        public Msg setDeleteAt​(Date deleteAt)
      • addRecipient

        public Msg addRecipient​(String id)
      • removeRecipient

        public Msg removeRecipient​(String id)
      • removeValue

        public Msg removeValue​(String key)
      • getInAnswerTo

        public MorphiumId getInAnswerTo()
      • setInAnswerTo

        public Msg setInAnswerTo​(MorphiumId inAnswerTo)
      • getName

        public String getName()
      • setName

        public Msg setName​(String name)
      • getTimestamp

        public long getTimestamp()
      • setTimestamp

        public Msg setTimestamp​(long timestamp)
      • getProcessedBy

        public List<String> getProcessedBy()
      • setProcessedBy

        public Msg setProcessedBy​(List<String> processedBy)
      • addProcessedId

        public Msg addProcessedId​(String id)
      • getLockedBy

        public String getLockedBy()
      • setLockedBy

        public Msg setLockedBy​(String lockedBy)
      • getLocked

        public long getLocked()
      • setLocked

        public Msg setLocked​(long locked)
      • getSender

        public String getSender()
      • setSender

        public Msg setSender​(String sender)
      • getTtl

        public long getTtl()
      • setTtl

        public Msg setTtl​(long ttl)
      • getMsg

        public String getMsg()
      • getAdditional

        public List<Object> getAdditional()
      • setAdditional

        public void setAdditional​(List<Object> additional)
      • addAdditional

        public void addAdditional​(String value)
      • removeAdditional

        public void removeAdditional​(String value)
      • getValue

        public String getValue()
      • setValue

        public Msg setValue​(String value)
      • preStore

        public void preStore()
      • isAnswer

        public boolean isAnswer()
      • createAnswerMsg

        public Msg createAnswerMsg()
      • sendAnswer

        public void sendAnswer​(Messaging messaging,
                               Msg m)
      • setRecipient

        public Msg setRecipient​(String id)
      • getRecipients

        public List<String> getRecipients()
      • setRecipients

        public void setRecipients​(List<String> recipients)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object