Interface Queue
- All Known Implementing Classes:
MockQueue
public interface Queue
The core queue interface. Pushes messages to a queue and pulls them for processing.
- Author:
- Alex Bogdanovski [[email protected]]
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of the queue.pull()Pulls one or more messages from a queue.voidPushes a message to a queue.voidSets the name of the queue.voidStart a new async task which polls the queue and automatically processes the messages.voidStops the polling async task manually.
-
Method Details
-
pull
-
push
-
getName
-
setName
-
startPolling
void startPolling()Start a new async task which polls the queue and automatically processes the messages. This was inspired by Elasticsearch rivers. -
stopPolling
void stopPolling()Stops the polling async task manually. This method should always be called on shutdown.
-