public class DefaultQueueStoreDelegate extends AbstractQueueStoreDelegate
Constructor and Description |
---|
DefaultQueueStoreDelegate(int capacity) |
Modifier and Type | Method and Description |
---|---|
protected void |
add(Serializable o)
Adds an item at the end of the queue
|
protected void |
addFirst(Serializable item)
Adds an object at the beginning of the queue
|
void |
dispose()
Deletes the queue and it's content.
|
protected boolean |
doAddAll(Collection<? extends Serializable> items)
Adds all the items at the end of the queue
|
protected void |
doClear()
Removes all the items in the queue
|
protected Serializable |
getFirst()
reads the first element in the queue
|
protected boolean |
isEmpty() |
protected Serializable |
removeFirst()
removes the first element in the queue
|
int |
size() |
protected void add(Serializable o)
AbstractQueueStoreDelegate
add
in class AbstractQueueStoreDelegate
o
- object to addprotected Serializable removeFirst()
AbstractQueueStoreDelegate
removeFirst
in class AbstractQueueStoreDelegate
protected boolean isEmpty()
isEmpty
in class AbstractQueueStoreDelegate
protected Serializable getFirst()
AbstractQueueStoreDelegate
getFirst
in class AbstractQueueStoreDelegate
protected void addFirst(Serializable item)
AbstractQueueStoreDelegate
addFirst
in class AbstractQueueStoreDelegate
item
- object to addprotected void doClear()
AbstractQueueStoreDelegate
doClear
in class AbstractQueueStoreDelegate
public int size()
size
in class AbstractQueueStoreDelegate
protected boolean doAddAll(Collection<? extends Serializable> items)
AbstractQueueStoreDelegate
doAddAll
in class AbstractQueueStoreDelegate
items
- objects to addpublic void dispose()
QueueStoreDelegate
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.