Class ServerMessageImpl

    • Constructor Detail

      • ServerMessageImpl

        public ServerMessageImpl()
    • Method Detail

      • getAssociated

        public ServerMessage.Mutable getAssociated()
        Specified by:
        getAssociated in interface ServerMessage
        a message associated with this message on the server. Typically this is a meta message that the current message is being sent in response to.
      • isLazy

        public boolean isLazy()
        Specified by:
        isLazy in interface ServerMessage
        true if the message is lazy and should not force the session's queue to be flushed
      • setLazy

        public void setLazy​(boolean lazy)
        Description copied from interface: ServerMessage.Mutable
        A lazy message does not provoke immediately delivery to the client but it will be delivered at first occasion or after a timeout expires
        Specified by:
        setLazy in interface ServerMessage.Mutable
        lazy - whether the message is lazy
      • freeze

        protected void freeze​(java.lang.String json)
      • isFrozen

        protected boolean isFrozen()
      • getJSONBytes

        public byte[] getJSONBytes()
      • put

        public java.lang.Object put​(java.lang.String key,
                                    java.lang.Object value)
        Specified by:
        put in interface java.util.Map<java.lang.String,​java.lang.Object>
        put in class java.util.HashMap<java.lang.String,​java.lang.Object>
      • entrySet

        public java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.Object>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<java.lang.String,​java.lang.Object>
        entrySet in class java.util.HashMap<java.lang.String,​java.lang.Object>
      • getExt

        public java.util.Map<java.lang.String,​java.lang.Object> getExt()
        Description copied from interface: Message
        Convenience method to retrieve the Message.EXT_FIELD
        Specified by:
        getExt in interface Message
        getExt in class HashMapMessage
        the ext of the message