Class SubjectMessage<T extends SubjectInfo>

  • Direct Known Subclasses:
    ESPQuote

    public class SubjectMessage<T extends SubjectInfo>
    extends java.lang.Object
    • Field Detail

      • fields

        protected final java.util.Map<java.lang.String,​java.lang.String> fields
    • Constructor Detail

      • SubjectMessage

        public SubjectMessage​(T info,
                              Message message)
    • Method Detail

      • getSubjectInfo

        public T getSubjectInfo()
      • addField

        public void addField​(java.lang.String fieldName,
                             java.lang.Object value)
        Adds a field to this Event.
        Parameters:
        fieldName - The name of the field to add.
        value - The value of the field to add. If the value is a BigDecimal then it will be converted to a String using BigDecimal.toPlainString()
      • addFields

        public void addFields​(java.util.Map<java.lang.String,​?> fields)
      • getFields

        public java.util.Map<java.lang.String,​java.lang.String> getFields()
      • setInitialLatencyTimestamp

        public void setInitialLatencyTimestamp​(java.time.Instant initialLatencyTimestamp)
      • getLatencyInitialTimestamp

        public java.time.Instant getLatencyInitialTimestamp()
      • addAdditionalLatencyTimestamp

        public void addAdditionalLatencyTimestamp​(java.lang.String name,
                                                  java.time.Instant latencyTimestamp)
      • getAdditionalLatencyTimestamps

        public java.util.Map<java.lang.String,​java.time.Instant> getAdditionalLatencyTimestamps()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object