public abstract class AbstractQueueSender<T>
extends java.lang.Object
implements java.util.concurrent.BlockingQueue<T>
Constructor and Description |
---|
AbstractQueueSender() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T value) |
boolean |
addAll(java.util.Collection<? extends T> arg0) |
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() |
protected MessagePropertiesFactory<T> |
getMessageFactory() |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
boolean |
offer(T value) |
boolean |
offer(T value,
long timeout,
java.util.concurrent.TimeUnit timeUnit) |
protected abstract boolean |
offerMicros(MessagePropertiesFactory<T> factory,
T value,
long timeoutMicros)
Offers a value to the queue.
|
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() |
<X> X[] |
toArray(X[] arg0) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
protected abstract boolean offerMicros(MessagePropertiesFactory<T> factory, T value, long timeoutMicros)
protected MessagePropertiesFactory<T> getMessageFactory()
public boolean add(T value)
public boolean offer(T value)
public boolean offer(T value, long timeout, java.util.concurrent.TimeUnit timeUnit)
offer
in interface java.util.concurrent.BlockingQueue<T>
public void put(T value) throws java.lang.InterruptedException
put
in interface java.util.concurrent.BlockingQueue<T>
java.lang.InterruptedException
public boolean addAll(java.util.Collection<? extends T> arg0)
addAll
in interface java.util.Collection<T>
public int remainingCapacity()
remainingCapacity
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.InterruptedException
public boolean remove(java.lang.Object arg0)
public T take() throws java.lang.InterruptedException
take
in interface java.util.concurrent.BlockingQueue<T>
java.lang.InterruptedException
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 boolean isEmpty()
isEmpty
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 int size()
size
in interface java.util.Collection<T>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<T>
public <X> X[] toArray(X[] 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 java.lang.String toString()
toString
in class java.lang.Object