Class 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArrayMessageSource

        public ArrayMessageSource​(T[] messages)
    • Method Detail

      • getMessage

        public T getMessage()
        Specified by:
        getMessage in interface deltix.data.stream.MessageSource<T>
      • next

        public boolean next()
        Specified by:
        next in interface deltix.util.concurrent.AbstractCursor
      • isAtEnd

        public boolean isAtEnd()
        Specified by:
        isAtEnd in interface deltix.util.concurrent.AbstractCursor
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface deltix.util.lang.Disposable