Package com.caplin.motif
Class SubjectMessage<T extends SubjectInfo>
java.lang.Object
com.caplin.motif.SubjectMessage<T>
- Direct Known Subclasses:
ESPQuote
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSubjectMessage
(T info, Message message) SubjectMessage
(T info, Message message, boolean isImage) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalLatencyTimestamp
(String name, Instant latencyTimestamp) void
Adds a field to this Event.void
boolean
int
hashCode()
boolean
isImage()
void
setImage
(boolean image) void
setInitialLatencyTimestamp
(Instant initialLatencyTimestamp) toString()
-
Field Details
-
fields
-
info
-
-
Constructor Details
-
SubjectMessage
-
SubjectMessage
-
-
Method Details
-
getSubjectInfo
-
addField
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
-
getFields
-
setInitialLatencyTimestamp
-
getLatencyInitialTimestamp
-
addAdditionalLatencyTimestamp
-
getAdditionalLatencyTimestamps
-
isImage
public boolean isImage() -
setImage
public void setImage(boolean image) -
equals
-
hashCode
public int hashCode() -
toString
-