public class WebSocketBlockingQueue<T>
extends java.lang.Object
implements java.util.concurrent.BlockingQueue<T>
| Constructor and Description |
|---|
WebSocketBlockingQueue(WebSocketContext ws,
WebSocketEncoder<T> encoder,
int capacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T value) |
boolean |
addAll(java.util.Collection<? extends T> collection) |
void |
clear() |
boolean |
contains(java.lang.Object arg0) |
boolean |
containsAll(java.util.Collection<?> arg0) |
int |
drainTo(java.util.Collection<? super T> arg0) |
int |
drainTo(java.util.Collection<? super T> arg0,
int arg1) |
T |
element() |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
boolean |
offer(T value) |
boolean |
offer(T value,
long timeout,
java.util.concurrent.TimeUnit unit) |
T |
peek() |
T |
poll() |
T |
poll(long arg0,
java.util.concurrent.TimeUnit arg1) |
void |
put(T value) |
int |
remainingCapacity() |
T |
remove() |
boolean |
remove(java.lang.Object arg0) |
boolean |
removeAll(java.util.Collection<?> arg0) |
boolean |
retainAll(java.util.Collection<?> arg0) |
int |
size() |
T |
take() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] arg0) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic WebSocketBlockingQueue(WebSocketContext ws, WebSocketEncoder<T> encoder, int capacity)
public boolean isEmpty()
isEmpty in interface java.util.Collection<T>public int size()
size in interface java.util.Collection<T>public int remainingCapacity()
remainingCapacity in interface java.util.concurrent.BlockingQueue<T>public boolean offer(T value)
public boolean offer(T value, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
offer in interface java.util.concurrent.BlockingQueue<T>java.lang.InterruptedExceptionpublic boolean add(T value)
public void put(T value) throws java.lang.InterruptedException
put in interface java.util.concurrent.BlockingQueue<T>java.lang.InterruptedExceptionpublic boolean addAll(java.util.Collection<? extends T> collection)
addAll in interface java.util.Collection<T>public void clear()
clear in interface java.util.Collection<T>public boolean containsAll(java.util.Collection<?> arg0)
containsAll in interface java.util.Collection<T>public java.util.Iterator<T> iterator()
public boolean removeAll(java.util.Collection<?> arg0)
removeAll in interface java.util.Collection<T>public boolean retainAll(java.util.Collection<?> arg0)
retainAll in interface java.util.Collection<T>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<T>public <T> T[] toArray(T[] arg0)
toArray in interface java.util.Collection<T>public boolean contains(java.lang.Object arg0)
public int drainTo(java.util.Collection<? super T> arg0)
drainTo in interface java.util.concurrent.BlockingQueue<T>public int drainTo(java.util.Collection<? super T> arg0, int arg1)
drainTo in interface java.util.concurrent.BlockingQueue<T>public T poll(long arg0, java.util.concurrent.TimeUnit arg1) throws java.lang.InterruptedException
poll in interface java.util.concurrent.BlockingQueue<T>java.lang.InterruptedExceptionpublic boolean remove(java.lang.Object arg0)