@Deprecated public class DefaultQueueInfoDelegate extends Object implements TransientQueueInfoDelegate
| Modifier and Type | Field and Description |
|---|---|
protected int |
capacity
Deprecated.
|
protected LinkedList<Serializable> |
list
Deprecated.
|
| Constructor and Description |
|---|
DefaultQueueInfoDelegate(int capacity)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(Collection<? extends Serializable> items)
Deprecated.
Appends all of the elements in the specified collection to the queue (optional
operation).
|
void |
clear()
Deprecated.
Discards all the elements in the queue
|
int |
getSize()
Deprecated.
Return the size of the queue
|
boolean |
offer(Serializable o,
int room,
long timeout)
Deprecated.
Offer to append a new member to the end of the queue
|
Serializable |
peek()
Deprecated.
return, but do not remove, the first member of the queue
|
Serializable |
poll(long timeout)
Deprecated.
Poll the queue for its first member, and, if there is one, remove and return
it
|
void |
putNow(Serializable o)
Deprecated.
append a new member to the end of the queue
|
void |
untake(Serializable item)
Deprecated.
Restore a previously removed member to the front of the queue
|
protected final int capacity
protected final LinkedList<Serializable> list
public DefaultQueueInfoDelegate(int capacity)
public void putNow(Serializable o)
QueueInfoDelegateputNow in interface QueueInfoDelegatepublic boolean offer(Serializable o, int room, long timeout) throws InterruptedException
QueueInfoDelegateoffer in interface QueueInfoDelegateInterruptedExceptionpublic Serializable poll(long timeout) throws InterruptedException
QueueInfoDelegatepoll in interface QueueInfoDelegateInterruptedExceptionpublic Serializable peek() throws InterruptedException
QueueInfoDelegatepeek in interface QueueInfoDelegateInterruptedExceptionpublic void untake(Serializable item) throws InterruptedException
QueueInfoDelegateuntake in interface QueueInfoDelegateInterruptedExceptionpublic void clear()
throws InterruptedException
QueueInfoDelegateclear in interface QueueInfoDelegateInterruptedExceptionpublic int getSize()
QueueInfoDelegategetSize in interface QueueInfoDelegatepublic boolean addAll(Collection<? extends Serializable> items)
QueueInfoDelegateaddAll in interface QueueInfoDelegateitems - to be added to the queueCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.