Class SubjectMessage<T extends SubjectInfo>

java.lang.Object
com.caplin.motif.SubjectMessage<T>
Direct Known Subclasses:
ESPQuote

public class SubjectMessage<T extends SubjectInfo> extends Object
  • Field Details

  • Constructor Details

    • SubjectMessage

      public SubjectMessage(T info, Message message)
    • SubjectMessage

      public SubjectMessage(T info, Message message, boolean isImage)
  • Method Details

    • getSubjectInfo

      public T getSubjectInfo()
    • addField

      public void addField(String fieldName, 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(Map<String,?> fields)
    • getFields

      public Map<String,String> getFields()
    • setInitialLatencyTimestamp

      public void setInitialLatencyTimestamp(Instant initialLatencyTimestamp)
    • getLatencyInitialTimestamp

      public Instant getLatencyInitialTimestamp()
    • addAdditionalLatencyTimestamp

      public void addAdditionalLatencyTimestamp(String name, Instant latencyTimestamp)
    • getAdditionalLatencyTimestamps

      public Map<String,Instant> getAdditionalLatencyTimestamps()
    • isImage

      public boolean isImage()
    • setImage

      public void setImage(boolean image)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object