|
||||||||||
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<java.lang.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. |
java.lang.Object |
peek()
Retrieves the head of the queue, or null if this queue is empty. |
java.lang.Object |
poll()
Retrieves and removes the head of this queue, or null if this queue is empty. |
void |
put(java.lang.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 java.util.Collection<java.lang.Object>
clear
in class java.util.concurrent.LinkedBlockingQueue<java.lang.Object>
public java.lang.Object peek()
peek
in interface java.util.Queue<java.lang.Object>
peek
in class java.util.concurrent.LinkedBlockingQueue<java.lang.Object>
public java.lang.Object poll()
poll
in interface java.util.Queue<java.lang.Object>
poll
in class java.util.concurrent.LinkedBlockingQueue<java.lang.Object>
public void put(java.lang.Object object) throws java.lang.InterruptedException
put
in interface java.util.concurrent.BlockingQueue<java.lang.Object>
put
in class java.util.concurrent.LinkedBlockingQueue<java.lang.Object>
object
- the object to add
java.lang.InterruptedException
- if the operation failed.public int size()
size
in interface java.util.Collection<java.lang.Object>
size
in class java.util.concurrent.LinkedBlockingQueue<java.lang.Object>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |