|
eXo Kernel :: Component :: Cache Service 2.4.10-UXP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.cache.concurrent.SynchronizedQueue<I>
public class SynchronizedQueue<I extends Item>
| Constructor Summary | |
|---|---|
SynchronizedQueue(Log log)
|
|
| Method Summary | |
|---|---|
void |
add(I item)
Add the item to the head of the list. |
void |
assertConsistency()
|
boolean |
remove(I item)
Attempt to remove an item from the queue. |
int |
size()
Returns the queue size |
ArrayList<I> |
trim(int size)
Attempt to trim the queue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SynchronizedQueue(Log log)
| Method Detail |
|---|
public int size()
Queue
size in interface Queue<I extends Item>public void assertConsistency()
public boolean remove(I item)
remove in interface Queue<I extends Item>item - the item to remove
public void add(I item)
add in interface Queue<I extends Item>item - the item to addpublic ArrayList<I> trim(int size)
trim in interface Queue<I extends Item>size - the wanted size
|
eXo Kernel :: Component :: Cache Service 2.4.10-UXP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||