Class SimpleMessageQueue<T>

  • All Implemented Interfaces:
    deltix.data.stream.MessageChannel<T>, deltix.util.lang.Disposable, java.io.Closeable, java.lang.AutoCloseable

    public class SimpleMessageQueue<T>
    extends java.lang.Object
    implements deltix.data.stream.MessageChannel<T>
    An unbounded queue of arbitrary messages, exposing a MessageChannel and a MessageSource as a way of accessing the queue. The MessageSource (output) end of the queue can be opened and closed. Closing the output causes messages to stop being accumulated.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      deltix.data.stream.MessageSource<T> open()  
      void send​(T msg)  
      • Methods inherited from class java.lang.Object

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

      • SimpleMessageQueue

        public SimpleMessageQueue()
    • Method Detail

      • send

        public void send​(T msg)
        Specified by:
        send in interface deltix.data.stream.MessageChannel<T>
      • 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
      • open

        public deltix.data.stream.MessageSource<T> open()