Package deltix.data.stream
Class SimpleMessageQueue<T>
- java.lang.Object
-
- deltix.data.stream.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.
-
-
Constructor Summary
Constructors Constructor Description SimpleMessageQueue()
-
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)
-
-
-
Method Detail
-
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
-
open
public deltix.data.stream.MessageSource<T> open()
-
-