Package deltix.qsrv.hf.pub
Class MessageBean
- java.lang.Object
-
- deltix.qsrv.hf.pub.InstrumentMessage
-
- deltix.qsrv.hf.pub.MessageBean
-
- All Implemented Interfaces:
deltix.data.stream.TimeStampedMessage,deltix.qsrv.hf.pub.InstrumentIdentity,deltix.qsrv.hf.pub.InstrumentIdentityInterface,deltix.qsrv.hf.pub.InstrumentMessageInfo,deltix.qsrv.hf.pub.InstrumentMessageInterface,deltix.qsrv.hf.pub.RecordInfo,deltix.qsrv.hf.pub.RecordInterface,java.lang.Comparable<deltix.qsrv.hf.pub.InstrumentMessage>
public class MessageBean extends deltix.qsrv.hf.pub.InstrumentMessageA representation of arbitrary message that holds a map from field name to field value.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.String,java.lang.Object>fieldsstatic java.lang.ObjectNULL_VALUERecordClassDescriptortype
-
Constructor Summary
Constructors Constructor Description MessageBean()MessageBean(RecordClassDescriptor type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageBeancopyFrom(deltix.qsrv.hf.pub.RecordInfo template)protected MessageBeancreateInstance()booleanequals(java.lang.Object obj)inthashCode()voidinitFieldMap()java.lang.StringtoString()This method is not very efficient, but will work for console debug output, etc.-
Methods inherited from class deltix.qsrv.hf.pub.InstrumentMessage
clone, compareTime, compareTime, compareTo, formatNanos, getInstrumentType, getNanoTime, getSymbol, getTimeStampMs, getTimeString, hasInstrumentType, hasNanoTime, hasSymbol, hasTimeStampMs, nullify, nullifyInstrumentType, nullifyNanoTime, nullifySymbol, nullifyTimeStampMs, reset, setInstrumentType, setNanoTime, setSymbol, setTimeStampMs, toString
-
-
-
-
Field Detail
-
NULL_VALUE
public static final java.lang.Object NULL_VALUE
-
type
public RecordClassDescriptor type
-
fields
public java.util.Map<java.lang.String,java.lang.Object> fields
-
-
Constructor Detail
-
MessageBean
public MessageBean()
-
MessageBean
public MessageBean(RecordClassDescriptor type)
-
-
Method Detail
-
initFieldMap
public final void initFieldMap()
-
copyFrom
public MessageBean copyFrom(deltix.qsrv.hf.pub.RecordInfo template)
- Specified by:
copyFromin interfacedeltix.qsrv.hf.pub.InstrumentMessageInterface- Specified by:
copyFromin interfacedeltix.qsrv.hf.pub.RecordInterface- Overrides:
copyFromin classdeltix.qsrv.hf.pub.InstrumentMessage
-
createInstance
protected MessageBean createInstance()
- Overrides:
createInstancein classdeltix.qsrv.hf.pub.InstrumentMessage
-
toString
public java.lang.String toString()
This method is not very efficient, but will work for console debug output, etc.- Overrides:
toStringin classdeltix.qsrv.hf.pub.InstrumentMessage
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classdeltix.qsrv.hf.pub.InstrumentMessage
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-