|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractQueue<E>
java.util.concurrent.LinkedBlockingQueue<Object>
org.wso2.carbon.registry.core.utils.LogQueue
public class LogQueue
Implementation of a Queue for logs.
| Constructor Summary | |
|---|---|
LogQueue()
|
|
| Method Summary | |
|---|---|
void |
clear()
Clears to queue. |
Object |
peek()
Retrieves the head of the queue, or null if this queue is empty. |
Object |
poll()
Retrieves and removes the head of this queue, or null if this queue is empty. |
void |
put(Object object)
Adds an item into this queue. |
int |
size()
Obtains the size of this queue. |
| Methods inherited from class java.util.concurrent.LinkedBlockingQueue |
|---|
drainTo, drainTo, iterator, offer, offer, poll, remainingCapacity, remove, take, toArray, toArray, toString |
| Methods inherited from class java.util.AbstractQueue |
|---|
add, addAll, element, remove |
| Methods inherited from class java.util.AbstractCollection |
|---|
contains, containsAll, isEmpty, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.concurrent.BlockingQueue |
|---|
add, contains |
| Methods inherited from interface java.util.Queue |
|---|
element, remove |
| Methods inherited from interface java.util.Collection |
|---|
addAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll |
| Constructor Detail |
|---|
public LogQueue()
| Method Detail |
|---|
public void clear()
clear in interface Collection<Object>clear in class LinkedBlockingQueue<Object>public Object peek()
peek in interface Queue<Object>peek in class LinkedBlockingQueue<Object>public Object poll()
poll in interface Queue<Object>poll in class LinkedBlockingQueue<Object>
public void put(Object object)
throws InterruptedException
put in interface BlockingQueue<Object>put in class LinkedBlockingQueue<Object>object - the object to add
InterruptedException - if the operation failed.public int size()
size in interface Collection<Object>size in class LinkedBlockingQueue<Object>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||