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 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(String name, Instant latencyTimestamp)
void
addField(String fieldName, Object value)
Adds a field to this Event.void
addFields(Map<String,?> fields)
boolean
equals(Object o)
Map<String,Instant>
getAdditionalLatencyTimestamps()
Map<String,String>
getFields()
Instant
getLatencyInitialTimestamp()
T
getSubjectInfo()
int
hashCode()
void
setInitialLatencyTimestamp(Instant initialLatencyTimestamp)
String
toString()
-
-
-
Field Detail
-
info
protected final T extends SubjectInfo info
-
-
Method Detail
-
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 aString
usingBigDecimal.toPlainString()
-
setInitialLatencyTimestamp
public void setInitialLatencyTimestamp(Instant initialLatencyTimestamp)
-
getLatencyInitialTimestamp
public Instant getLatencyInitialTimestamp()
-
addAdditionalLatencyTimestamp
public void addAdditionalLatencyTimestamp(String name, Instant latencyTimestamp)
-
-