Package deltix.qsrv.hf.tickdb.pub
Class ArrayMessageSource<T>
- java.lang.Object
-
- deltix.qsrv.hf.tickdb.pub.ArrayMessageSource<T>
-
- All Implemented Interfaces:
deltix.data.stream.MessageSource<T>
,deltix.util.concurrent.AbstractCursor
,deltix.util.lang.Disposable
,java.io.Closeable
,java.lang.AutoCloseable
public class ArrayMessageSource<T> extends java.lang.Object implements deltix.data.stream.MessageSource<T>
MessageSource implementation backed by an array of messages
-
-
Constructor Summary
Constructors Constructor Description ArrayMessageSource(T[] messages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
T
getMessage()
boolean
isAtEnd()
boolean
next()
-
-
-
Constructor Detail
-
ArrayMessageSource
public ArrayMessageSource(T[] messages)
-
-
Method Detail
-
getMessage
public T getMessage()
- Specified by:
getMessage
in interfacedeltix.data.stream.MessageSource<T>
-
next
public boolean next()
- Specified by:
next
in interfacedeltix.util.concurrent.AbstractCursor
-
isAtEnd
public boolean isAtEnd()
- Specified by:
isAtEnd
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
-
-