Package deltix.qsrv.hf.tickdb.pub.query
Class MessageInfoBuffer
- java.lang.Object
-
- deltix.qsrv.hf.tickdb.pub.query.MessageInfoBuffer
-
- All Implemented Interfaces:
MessageInfo,TypedMessageSource
public final class MessageInfoBuffer extends java.lang.Object implements MessageInfo
Efficiently buffers all information contained in aMessageInfoinstance.
-
-
Field Summary
Fields Modifier and Type Field Description intcurrentEntityIdxdeltix.qsrv.hf.pub.InstrumentMessagecurrentMessageTickStreamcurrentStreamintcurrentStreamIdxRecordClassDescriptorcurrentTypeintcurrentTypeIdx
-
Constructor Summary
Constructors Constructor Description MessageInfoBuffer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyFrom(MessageInfo delegate)intgetCurrentEntityIndex()Return a small number identifying the returned entity.TickStreamgetCurrentStream()Return the current stream instance, unless it has been removed, in which case null is returned.intgetCurrentStreamIndex()Return the index of the stream that is the source of the current message.java.lang.StringgetCurrentStreamKey()Return the key of the stream that is the source of the current message.RecordClassDescriptorgetCurrentType()Returns the type of the current message.intgetCurrentTypeIndex()Returns the type index of the current message.deltix.qsrv.hf.pub.InstrumentMessagegetMessage()Returns the current message.voidsetMessageNoCopy(deltix.qsrv.hf.pub.InstrumentMessage msg)voidsetUpNoCopy(MessageInfo delegate, deltix.qsrv.hf.pub.InstrumentMessage msg)
-
-
-
Field Detail
-
currentMessage
public deltix.qsrv.hf.pub.InstrumentMessage currentMessage
-
currentTypeIdx
public int currentTypeIdx
-
currentType
public RecordClassDescriptor currentType
-
currentStreamIdx
public int currentStreamIdx
-
currentStream
public TickStream currentStream
-
currentEntityIdx
public int currentEntityIdx
-
-
Method Detail
-
setMessageNoCopy
public void setMessageNoCopy(deltix.qsrv.hf.pub.InstrumentMessage msg)
-
setUpNoCopy
public void setUpNoCopy(MessageInfo delegate, deltix.qsrv.hf.pub.InstrumentMessage msg)
-
copyFrom
public void copyFrom(MessageInfo delegate)
-
getMessage
public deltix.qsrv.hf.pub.InstrumentMessage getMessage()
Description copied from interface:MessageInfoReturns the current message.- Specified by:
getMessagein interfaceMessageInfo
-
getCurrentTypeIndex
public int getCurrentTypeIndex()
Description copied from interface:TypedMessageSourceReturns the type index of the current message.- Specified by:
getCurrentTypeIndexin interfaceTypedMessageSource- Returns:
- The current message type index.
-
getCurrentType
public RecordClassDescriptor getCurrentType()
Description copied from interface:TypedMessageSourceReturns the type of the current message.- Specified by:
getCurrentTypein interfaceTypedMessageSource- Returns:
- The current message type.
-
getCurrentStreamKey
public java.lang.String getCurrentStreamKey()
Description copied from interface:MessageInfoReturn the key of the stream that is the source of the current message.- Specified by:
getCurrentStreamKeyin interfaceMessageInfo- Returns:
- The source stream key.
-
getCurrentStreamIndex
public int getCurrentStreamIndex()
Description copied from interface:MessageInfoReturn the index of the stream that is the source of the current message.- Specified by:
getCurrentStreamIndexin interfaceMessageInfo- Returns:
- The current message source stream's index.
-
getCurrentStream
public TickStream getCurrentStream()
Description copied from interface:MessageInfoReturn the current stream instance, unless it has been removed, in which case null is returned.- Specified by:
getCurrentStreamin interfaceMessageInfo
-
getCurrentEntityIndex
public int getCurrentEntityIndex()
Description copied from interface:MessageInfoReturn a small number identifying the returned entity. This number is unique throughout the life of the message source. Removing entities from subscription does not create reusable holes in the "space" of entity indexes.- Specified by:
getCurrentEntityIndexin interfaceMessageInfo- See Also:
EntitySubscriptionController
-
-