|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- Type of entry to be stored.public interface WriteBehindQueue<E>
Main contract for write behind queues which are used for map store operations.
Method Summary | |
---|---|
void |
addEnd(Collection<E> collection)
Add this collection to the end of the queue. |
void |
addFront(Collection<E> collection)
Add this collection to the front of the queue. |
List<E> |
asList()
Returns list representation of this queue. |
void |
clear()
|
List<E> |
filterItems(long now)
Returns list of entries smaller than specific time. |
E |
get(E e)
Gets item. |
List<DelayedEntry> |
get(int count)
Returns supplied number of entries from the start. |
E |
getFirst()
Gets first item in queue. |
WriteBehindQueue<E> |
getSnapShot()
|
boolean |
isEnabled()
Empty or a real queue. |
boolean |
offer(E e)
adds to the end. |
List<E> |
removeAll()
Removes and returns all items in this queue. |
void |
removeAll(Collection<E> collection)
Removes all items in collection from queue. |
void |
removeFirst()
removes head of the queue. |
int |
size()
|
Method Detail |
---|
boolean offer(E e)
e
- item to be offered
true
if added, false
otherwise.E get(E e)
e
- item to be offered
E getFirst()
void removeFirst()
int size()
void clear()
WriteBehindQueue<E> getSnapShot()
void addFront(Collection<E> collection)
collection
- collection to be added in front of this queue.void addEnd(Collection<E> collection)
collection
- collection to be added end of this queue.void removeAll(Collection<E> collection)
collection
- collection to be removed.List<E> removeAll()
boolean isEnabled()
List<E> asList()
List<E> filterItems(long now)
now
- now in millis.
List<DelayedEntry> get(int count)
count
- number of entries to return.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |