public class LogQueue extends LinkedBlockingQueue<Object>
| Constructor and Description |
|---|
LogQueue() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
contains, drainTo, drainTo, iterator, offer, offer, poll, remainingCapacity, remove, take, toArray, toArray, toStringadd, addAll, element, removecontainsAll, isEmpty, removeAll, retainAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddaddAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAllpublic void clear()
clear in interface Collection<Object>clear in class LinkedBlockingQueue<Object>public Object peek()
public Object poll()
public void put(Object object) throws InterruptedException
put in interface BlockingQueue<Object>put in class LinkedBlockingQueue<Object>object - the object to addInterruptedException - if the operation failed.public int size()
size in interface Collection<Object>size in class LinkedBlockingQueue<Object>Copyright © 2015 WSO2 Inc. All Rights Reserved.