public interface MessageSendingQueue
Modifier and Type | Method and Description |
---|---|
void |
beginSending(@NonNull Consumer<String> consumer)
Starts sending messages to the given consumer.
|
boolean |
contains(@NonNull String message)
Gets if the queue currently has within it a particular message.
|
@NonNull Optional<Consumer<String>> |
getConsumer()
Gets the queue's currently set consumer.
|
void |
pause()
Pauses message sending.
|
void |
queue(@NonNull String message)
Queues a given message.
|
@NonNull Queue<String> |
shutdown()
Closes down shop, interrupts all threads.
|
void beginSending(@NonNull Consumer<String> consumer)
consumer
- the consumer to consumeboolean contains(@NonNull String message)
message
- the message to check for@NonNull Optional<Consumer<String>> getConsumer()
void pause()
void queue(@NonNull String message)
message
- the message to queueCopyright © 2013–2021 Kitteh. All rights reserved.