Package io.moquette.broker
Interface SessionMessageQueue<T>
-
- All Known Implementing Classes:
AbstractSessionMessageQueue,InMemoryQueue
public interface SessionMessageQueue<T>Queue definition used by the Session class. Due to the fact that Session's code is executed in a single thread, because the architecture is event loop based, the queue implementations doesn't need to be thread safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcloseAndPurge()Executes cleanup code to release the queue.Tdequeue()voidenqueue(T message)booleanisEmpty()
-