| Constructor and Description |
|---|
DelayedReceive(TimeProvider timeProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all queued messages.
|
void |
dispatchLater(T message,
int delayValue,
TimeUnit delayUnits)
Dispatches the given message after the given delay.
|
T |
receive()
Blocks until the next message is available.
|
boolean |
remove(T message)
Removes one instance of the given message from the queue.
|
void |
stop()
Blocks until all queued messages are delivered.
|
public DelayedReceive(TimeProvider timeProvider)
public T receive()
Receivepublic void dispatchLater(T message, int delayValue, TimeUnit delayUnits)
public boolean remove(T message)
public void clear()
Copyright © 2013. All rights reserved