public class SynchronizedQueue<I extends Item> extends Object implements Queue<I>
| Constructor and Description |
|---|
SynchronizedQueue(Log log) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public SynchronizedQueue(Log log)
public int size()
Queuepublic void assertConsistency()
public boolean remove(I item)
public void add(I item)
Copyright © 2016 eXo Platform SAS. All Rights Reserved.