Package | Description |
---|---|
com.openexchange.mail.watcher |
Modifier and Type | Method and Description |
---|---|
MailAccessDelayElement |
MailAccessDelayQueue.peek()
Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.
|
MailAccessDelayElement |
MailAccessDelayQueue.poll()
Retrieves and removes the head of this queue, or returns null if this queue has no elements with an expired delay.
|
MailAccessDelayElement |
MailAccessDelayQueue.poll(long timeout,
java.util.concurrent.TimeUnit unit)
Retrieves and removes the head of this queue, waiting if necessary until an element with an expired delay is available on this queue,
or the specified wait time expires.
|
MailAccessDelayElement |
MailAccessDelayQueue.poll(MailAccessDelayQueue.ElementFilter filter)
Retrieves and removes the head of this queue, or returns null if this queue has no elements with an expired delay or specified filter is not fulfilled.
|
MailAccessDelayElement |
MailAccessDelayQueue.take()
Retrieves and removes the head of this queue, waiting if necessary until an element with an expired delay is available on this queue.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<MailAccessDelayElement> |
MailAccessDelayQueue.iterator()
Returns an iterator over all the elements (both expired and unexpired) in this queue.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MailAccessDelayQueue.ElementFilter.accept(MailAccessDelayElement element)
Checks if specified expired element is allowed for being polled
|
boolean |
MailAccessDelayQueue.add(MailAccessDelayElement e)
Inserts the specified element into this delay queue.
|
boolean |
MailAccessDelayQueue.offer(MailAccessDelayElement e)
Inserts the specified element into this delay queue.
|
boolean |
MailAccessDelayQueue.offer(MailAccessDelayElement e,
long timeout,
java.util.concurrent.TimeUnit unit)
Inserts the specified element into this delay queue.
|
void |
MailAccessDelayQueue.put(MailAccessDelayElement e)
Inserts the specified element into this delay queue.
|
Modifier and Type | Method and Description |
---|---|
int |
MailAccessDelayQueue.drainTo(java.util.Collection<? super MailAccessDelayElement> c) |
int |
MailAccessDelayQueue.drainTo(java.util.Collection<? super MailAccessDelayElement> c,
int maxElements) |
Constructor and Description |
---|
MailAccessDelayQueue(java.util.Collection<? extends MailAccessDelayElement> c)
Creates a MailAccessWatcherDelayQueue initially containing the elements of the given collection of
Delayed
instances. |