interface MessageQueue
Modifier and Type | Method and Description |
---|---|
void |
add(OutNetMessage message)
Add on a new message to the queue
|
OutNetMessage |
getNext(long blockUntil)
Get the next message, blocking until one is found or the expiration
reached.
|
OutNetMessage getNext(long blockUntil)
blockUntil
- expiration, or -1 if indefinitevoid add(OutNetMessage message)