@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)
QueueInfoDelegate
putNow
in interface QueueInfoDelegate
public boolean offer(Serializable o, int room, long timeout) throws InterruptedException
QueueInfoDelegate
offer
in interface QueueInfoDelegate
InterruptedException
public Serializable poll(long timeout) throws InterruptedException
QueueInfoDelegate
poll
in interface QueueInfoDelegate
InterruptedException
public Serializable peek() throws InterruptedException
QueueInfoDelegate
peek
in interface QueueInfoDelegate
InterruptedException
public void untake(Serializable item) throws InterruptedException
QueueInfoDelegate
untake
in interface QueueInfoDelegate
InterruptedException
public void clear() throws InterruptedException
QueueInfoDelegate
clear
in interface QueueInfoDelegate
InterruptedException
public int getSize()
QueueInfoDelegate
getSize
in interface QueueInfoDelegate
public boolean addAll(Collection<? extends Serializable> items)
QueueInfoDelegate
addAll
in interface QueueInfoDelegate
items
- to be added to the queueCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.