Class Message

    • Field Detail

      • MAPPER

        public static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
    • Constructor Detail

      • Message

        public Message​(int sequence,
                       Map map)
        Create a message using a map of key, value pairs
        Parameters:
        sequence - sequence number of the message
        map - key/value pairs representing the message
      • Message

        public Message​(int sequence,
                       io.netty.buffer.ByteBuf buffer)
        Create a message using a ByteBuf holding a Json object. Note that this ctr is *lazy* - it will not deserialize the Json object until it is needed.
        Parameters:
        sequence - sequence number of the message
        buffer - ByteBuf buffer containing Json object
    • Method Detail

      • getSequence

        public int getSequence()
        Returns the sequence number of this messsage
        Returns:
      • getData

        public Map getData()
        Returns a list of key/value pairs representing the contents of the message. Note that this method is lazy if the Message was created using a ByteBuf
        Returns:
        Map Map of key/value pairs
      • getBatch

        public Batch getBatch()
      • setBatch

        public void setBatch​(Batch batch)
      • getIdentityStream

        public String getIdentityStream()