Class SynchronizedQueue<I extends Item>
- java.lang.Object
-
- org.exoplatform.services.cache.concurrent.SynchronizedQueue<I>
-
- All Implemented Interfaces:
Queue<I>
public class SynchronizedQueue<I extends Item> extends Object implements Queue<I>
- Version:
- $Revision$
- Author:
- Julien Viet
-
-
Constructor Summary
Constructors Constructor Description SynchronizedQueue(org.exoplatform.services.log.Log log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(I item)Add the item to the head of the list.voidassertConsistency()booleanremove(I item)Attempt to remove an item from the queue.intsize()Returns the queue sizeArrayList<I>trim(int size)Attempt to trim the queue.
-
-
-
Method Detail
-
size
public int size()
Description copied from interface:QueueReturns the queue size
-
assertConsistency
public void assertConsistency()
-
remove
public boolean remove(I item)
Attempt to remove an item from the queue.
-
add
public void add(I item)
Add the item to the head of the list.
-
-