Package deltix.qsrv.hf.stream
Class LimitedInstrumentMessageSource
- java.lang.Object
-
- deltix.qsrv.hf.tickdb.pub.MessageSourceAdapter<deltix.qsrv.hf.pub.InstrumentMessage>
-
- deltix.qsrv.hf.tickdb.pub.InstrumentMessageSourceAdapter
-
- deltix.qsrv.hf.stream.LimitedInstrumentMessageSource
-
- All Implemented Interfaces:
deltix.data.stream.MessageSource<deltix.qsrv.hf.pub.InstrumentMessage>,RealTimeMessageSource<deltix.qsrv.hf.pub.InstrumentMessage>,EntityAndTypeSubscriptionController,EntitySubscriptionController,InstrumentMessageSource,MessageInfo,StreamSubscriptionController,SubscriptionController,SymbolAndTypeSubscriptionController,SymbolSubscriptionController,TimeController,TypedMessageSource,TypeSubscriptionController,deltix.util.concurrent.AbstractCursor,deltix.util.concurrent.IntermittentlyAvailableCursor,deltix.util.concurrent.IntermittentlyAvailableResource,deltix.util.lang.Disposable,java.io.Closeable,java.lang.AutoCloseable
public class LimitedInstrumentMessageSource extends InstrumentMessageSourceAdapter implements deltix.util.concurrent.IntermittentlyAvailableCursor
MessageSource that simulates end-of-stream at given timestamp
-
-
Constructor Summary
Constructors Constructor Description LimitedInstrumentMessageSource(InstrumentMessageSource delegate, long endTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description deltix.qsrv.hf.pub.InstrumentMessagegetMessage()Returns the current message.booleanisAtEnd()booleannext()deltix.util.concurrent.NextResultnextIfAvailable()-
Methods inherited from class deltix.qsrv.hf.tickdb.pub.InstrumentMessageSourceAdapter
add, add, addEntities, addEntity, addStream, addSymbol, addSymbols, addSymbols, addTypes, clearAllEntities, clearAllSymbols, close, getCurrentEntityIndex, getCurrentStream, getCurrentStreamIndex, getCurrentStreamKey, getCurrentType, getCurrentTypeIndex, getDelegate, isClosed, isRealTime, realTimeAvailable, remove, remove, removeAllStreams, removeEntities, removeEntity, removeStream, removeSymbol, removeSymbols, removeSymbols, removeTypes, reset, setAvailabilityListener, setTimeForNewSubscriptions, setTypes, subscribeToAllEntities, subscribeToAllSymbols, subscribeToAllTypes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface deltix.qsrv.hf.tickdb.pub.query.EntitySubscriptionController
addEntities, removeEntities
-
-
-
-
Constructor Detail
-
LimitedInstrumentMessageSource
public LimitedInstrumentMessageSource(InstrumentMessageSource delegate, long endTime)
-
-
Method Detail
-
getMessage
public deltix.qsrv.hf.pub.InstrumentMessage getMessage()
Description copied from interface:MessageInfoReturns the current message.- Specified by:
getMessagein interfaceInstrumentMessageSource- Specified by:
getMessagein interfaceMessageInfo- Specified by:
getMessagein interfacedeltix.data.stream.MessageSource<deltix.qsrv.hf.pub.InstrumentMessage>- Overrides:
getMessagein classInstrumentMessageSourceAdapter
-
isAtEnd
public boolean isAtEnd()
- Specified by:
isAtEndin interfacedeltix.util.concurrent.AbstractCursor- Overrides:
isAtEndin classInstrumentMessageSourceAdapter
-
next
public boolean next()
- Specified by:
nextin interfacedeltix.util.concurrent.AbstractCursor- Overrides:
nextin classInstrumentMessageSourceAdapter
-
nextIfAvailable
public deltix.util.concurrent.NextResult nextIfAvailable()
- Specified by:
nextIfAvailablein interfacedeltix.util.concurrent.IntermittentlyAvailableCursor
-
-