public interface Queue
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of the queue.
|
String |
pull()
Pulls a message from a queue.
|
void |
push(String task)
Pushes a message to a queue.
|
void |
setName(String name)
Sets the name of the queue.
|
void |
startPolling()
Start a new async task which polls the queue and automatically
processes the messages.
|
void |
stopPolling()
Stops the polling async task manually.
|
String pull()
void push(String task)
task - the messageString getName()
void setName(String name)
name - a namevoid startPolling()
void stopPolling()
Copyright © 2018 Erudika. All rights reserved.