Package deltix.qsrv.hf.pub
Class RawMessage
- java.lang.Object
-
- deltix.qsrv.hf.pub.InstrumentMessage
-
- deltix.qsrv.hf.pub.RawMessage
-
- 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 final class RawMessage extends deltix.qsrv.hf.pub.InstrumentMessage
Special message class used by Tick DB server. Contains undecoded message bytes.
-
-
Field Summary
Fields Modifier and Type Field Description byte[]
data
int
length
int
offset
RecordClassDescriptor
type
-
Constructor Summary
Constructors Constructor Description RawMessage()
RawMessage(RecordClassDescriptor type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyBytes(deltix.util.memory.MemoryDataOutput out, int offset)
Copy bytes from the specified MemoryDataOutput into this message, reusing its bytes field, unless it is null or too small.RawMessage
copyFrom(deltix.qsrv.hf.pub.RecordInfo template)
protected RawMessage
createInstance()
boolean
equals(java.lang.Object obj)
byte[]
getData()
int
hashCode()
void
setBytes(byte[] data, int offset, int length)
void
setBytes(deltix.util.memory.MemoryDataOutput out)
void
setBytes(deltix.util.memory.MemoryDataOutput out, int offset)
void
setUpMemoryDataInput(deltix.util.memory.MemoryDataInput mdi)
java.lang.String
toString()
This method is not very efficient, but will work for console debug output, etc.void
writeTo(deltix.util.memory.MemoryDataOutput out)
-
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
-
type
public RecordClassDescriptor type
-
data
public byte[] data
-
offset
public int offset
-
length
public int length
-
-
Constructor Detail
-
RawMessage
public RawMessage()
-
RawMessage
public RawMessage(RecordClassDescriptor type)
-
-
Method Detail
-
setBytes
public final void setBytes(deltix.util.memory.MemoryDataOutput out)
-
setBytes
public final void setBytes(deltix.util.memory.MemoryDataOutput out, int offset)
-
setBytes
public final void setBytes(byte[] data, int offset, int length)
-
copyBytes
public final void copyBytes(deltix.util.memory.MemoryDataOutput out, int offset)
Copy bytes from the specified MemoryDataOutput into this message, reusing its bytes field, unless it is null or too small.
-
setUpMemoryDataInput
public final void setUpMemoryDataInput(deltix.util.memory.MemoryDataInput mdi)
-
writeTo
public final void writeTo(deltix.util.memory.MemoryDataOutput out)
-
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
-
copyFrom
public RawMessage 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 RawMessage createInstance()
- Overrides:
createInstance
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
-
getData
public byte[] getData()
-
-