Package deltix.qsrv.hf.stream
Class LimitedMessageSource
- java.lang.Object
-
- deltix.qsrv.hf.stream.LimitedMessageSource
-
- All Implemented Interfaces:
deltix.data.stream.MessageSource<deltix.qsrv.hf.pub.InstrumentMessage>
,deltix.util.concurrent.AbstractCursor
,deltix.util.lang.Disposable
,java.io.Closeable
,java.lang.AutoCloseable
public class LimitedMessageSource extends java.lang.Object implements deltix.data.stream.MessageSource<deltix.qsrv.hf.pub.InstrumentMessage>
MessageSource that simulates end-of-stream at given timestamp
-
-
Constructor Summary
Constructors Constructor Description LimitedMessageSource(deltix.data.stream.MessageSource<deltix.qsrv.hf.pub.InstrumentMessage> delegate, long limit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
deltix.qsrv.hf.pub.InstrumentMessage
getMessage()
boolean
isAtEnd()
boolean
next()
-
-
-
Method Detail
-
getMessage
public deltix.qsrv.hf.pub.InstrumentMessage getMessage()
- Specified by:
getMessage
in interfacedeltix.data.stream.MessageSource<deltix.qsrv.hf.pub.InstrumentMessage>
-
isAtEnd
public boolean isAtEnd()
- Specified by:
isAtEnd
in interfacedeltix.util.concurrent.AbstractCursor
-
next
public boolean next()
- Specified by:
next
in interfacedeltix.util.concurrent.AbstractCursor
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfacedeltix.util.lang.Disposable
-
-