Class SynchronizedQueue<I extends Item>
java.lang.Object
org.exoplatform.services.cache.concurrent.SynchronizedQueue<I>
- All Implemented Interfaces:
Queue<I>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SynchronizedQueue
public SynchronizedQueue(org.exoplatform.services.log.Log log)
-
-
Method Details
-
size
public int size()Description copied from interface:QueueReturns the queue size -
assertConsistency
public void assertConsistency() -
remove
Attempt to remove an item from the queue. -
add
Add the item to the head of the list. -
trim
Attempt to trim the queue. Trim will occur if no other thread is already performing a trim and the queue size is greater than the provided size.
-