Class 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  
      • Fields inherited from class deltix.qsrv.hf.pub.InstrumentMessage

        instrumentType, nanoTime, symbol, timestamp
      • Fields inherited from interface deltix.data.stream.TimeStampedMessage

        INT64_NULL, TIMESTAMP_UNKNOWN
    • 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
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • NULL_VALUE

        public static final java.lang.Object NULL_VALUE
      • fields

        public java.util.Map<java.lang.String,​java.lang.Object> fields
    • Method Detail

      • initFieldMap

        public final void initFieldMap()
      • copyFrom

        public MessageBean copyFrom​(deltix.qsrv.hf.pub.RecordInfo template)
        Specified by:
        copyFrom in interface deltix.qsrv.hf.pub.InstrumentMessageInterface
        Specified by:
        copyFrom in interface deltix.qsrv.hf.pub.RecordInterface
        Overrides:
        copyFrom in class deltix.qsrv.hf.pub.InstrumentMessage
      • createInstance

        protected MessageBean createInstance()
        Overrides:
        createInstance in class deltix.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 class deltix.qsrv.hf.pub.InstrumentMessage
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class deltix.qsrv.hf.pub.InstrumentMessage
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object