MessageQueueProvider

fun interface MessageQueueProvider<T : Message>

The queue provider for any type of messages. The queue must be thread-safe! The default implementation is a ConcurrentLinkedQueue.

Parameters

T

the type of the message that the queue handles, either incoming or outgoing.

Inheritors

Functions

Link copied to clipboard
abstract fun provide(): Queue<T>

Provides a new instance of the message queue. This should always return a new instance of the queue implementation.