Package com.caplin.motif
Class SubjectMessage<T extends SubjectInfo>
- java.lang.Object
-
- com.caplin.motif.SubjectMessage<T>
-
- Direct Known Subclasses:
ESPQuote
public class SubjectMessage<T extends SubjectInfo> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SubjectMessage(T info, Message message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAdditionalLatencyTimestamp(java.lang.String name, java.time.Instant latencyTimestamp)
void
addField(java.lang.String fieldName, java.lang.Object value)
Adds a field to this Event.void
addFields(java.util.Map<java.lang.String,?> fields)
boolean
equals(java.lang.Object o)
java.util.Map<java.lang.String,java.time.Instant>
getAdditionalLatencyTimestamps()
java.util.Map<java.lang.String,java.lang.String>
getFields()
java.time.Instant
getLatencyInitialTimestamp()
T
getSubjectInfo()
int
hashCode()
void
setInitialLatencyTimestamp(java.time.Instant initialLatencyTimestamp)
java.lang.String
toString()
-
-
-
Field Detail
-
fields
protected final java.util.Map<java.lang.String,java.lang.String> fields
-
info
protected final T extends SubjectInfo info
-
-
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 aString
usingBigDecimal.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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-