public class LinkedBlockingStack<E>
extends java.util.AbstractQueue<E>
implements java.util.concurrent.BlockingQueue<E>
| Constructor and Description |
|---|
LinkedBlockingStack() |
LinkedBlockingStack(java.util.Collection c) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
contains(java.lang.Object o) |
int |
drainTo(java.util.Collection c) |
int |
drainTo(java.util.Collection c,
int max) |
protected java.util.concurrent.locks.ReentrantLock |
getLock()
Returns the lock object used for synchronizing this object's state.
|
java.util.Iterator<E> |
iterator() |
boolean |
offer(E o) |
boolean |
offer(E o,
long t,
java.util.concurrent.TimeUnit unit) |
E |
peek() |
E |
poll() |
E |
poll(long t,
java.util.concurrent.TimeUnit unit) |
void |
put(E o) |
int |
remainingCapacity() |
boolean |
remove(java.lang.Object o) |
int |
size() |
E |
take() |
containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic LinkedBlockingStack()
public LinkedBlockingStack(java.util.Collection c)
protected java.util.concurrent.locks.ReentrantLock getLock()
public int size()
public boolean offer(E o)
public boolean offer(E o, long t, java.util.concurrent.TimeUnit unit)
offer in interface java.util.concurrent.BlockingQueue<E>public E take() throws java.lang.InterruptedException
take in interface java.util.concurrent.BlockingQueue<E>java.lang.InterruptedExceptionpublic E poll(long t, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
poll in interface java.util.concurrent.BlockingQueue<E>java.lang.InterruptedExceptionpublic int remainingCapacity()
remainingCapacity in interface java.util.concurrent.BlockingQueue<E>public boolean contains(java.lang.Object o)
public boolean remove(java.lang.Object o)
public void clear()
public int drainTo(java.util.Collection c)
drainTo in interface java.util.concurrent.BlockingQueue<E>public int drainTo(java.util.Collection c,
int max)
drainTo in interface java.util.concurrent.BlockingQueue<E>Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.