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.InstrumentMessage
A 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>
fields
static java.lang.Object
NULL_VALUE
RecordClassDescriptor
type
-
Constructor Summary
Constructors Constructor Description MessageBean()
MessageBean(RecordClassDescriptor type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageBean
copyFrom(deltix.qsrv.hf.pub.RecordInfo template)
protected MessageBean
createInstance()
boolean
equals(java.lang.Object obj)
int
hashCode()
void
initFieldMap()
java.lang.String
toString()
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:
copyFrom
in interfacedeltix.qsrv.hf.pub.InstrumentMessageInterface
- Specified by:
copyFrom
in interfacedeltix.qsrv.hf.pub.RecordInterface
- Overrides:
copyFrom
in classdeltix.qsrv.hf.pub.InstrumentMessage
-
createInstance
protected MessageBean createInstance()
- Overrides:
createInstance
in 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:
toString
in classdeltix.qsrv.hf.pub.InstrumentMessage
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classdeltix.qsrv.hf.pub.InstrumentMessage
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-