| Constructor and Description |
|---|
MockQueue()
Default constructor.
|
MockQueue(String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of the queue.
|
String |
pull()
Pulls one or more messages 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.
|
public MockQueue()
public MockQueue(String name)
name - namepublic String pull()
Queuepublic void push(String task)
Queuepublic String getName()
Queuepublic void setName(String name)
Queuepublic void startPolling()
QueuestartPolling in interface Queuepublic void stopPolling()
QueuestopPolling in interface QueueCopyright © 2019 Erudika. All rights reserved.