public interface DispatchQueue<T>
Modifier and Type | Interface and Description |
---|---|
static class |
DispatchQueue.EnqueueResult
The result of performing an
enqueue(Object, String) . |
Modifier and Type | Method and Description |
---|---|
Map.Entry<String,T> |
dequeue()
Retrieves and removes the head of this queue, waiting if necessary until an element becomes available.
|
DispatchQueue.EnqueueResult |
enqueue(T message,
String key)
Adds the message to the tail of the queue blocking if the queue is currently full.
|
int |
getSize() |
boolean |
isFull() |
DispatchQueue.EnqueueResult enqueue(T message, String key) throws WriteFailedException
WriteFailedException
Map.Entry<String,T> dequeue() throws InterruptedException
InterruptedException
- if interrupted while waitingboolean isFull()
int getSize()
Copyright © 2020. All rights reserved.