Class MessageSourceAdapter<T>

  • All Implemented Interfaces:
    deltix.data.stream.MessageSource<T>, deltix.util.concurrent.AbstractCursor, deltix.util.lang.Disposable, java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    InstrumentMessageSourceAdapter, TickCursorAdapter

    public class MessageSourceAdapter<T>
    extends java.lang.Object
    implements deltix.data.stream.MessageSource<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageSourceAdapter​(deltix.data.stream.MessageSource<T> delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      protected deltix.data.stream.MessageSource<T> getDelegate()  
      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

      • MessageSourceAdapter

        public MessageSourceAdapter​(deltix.data.stream.MessageSource<T> delegate)
    • Method Detail

      • getDelegate

        protected deltix.data.stream.MessageSource<T> getDelegate()
      • 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