public class ContainerBlockingQueue<E> extends ContainerQueue<E> implements IContainerBlockingQueue<E>
container blocking queue.AbstractDelegator.DelegatingIteratorIContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>| Constructor and Description |
|---|
ContainerBlockingQueue(BlockingQueue<E> delegate) |
| Modifier and Type | Method and Description |
|---|---|
int |
drainTo(Collection<? super E> c) |
int |
drainTo(Collection<? super E> c,
int maxElements) |
BlockingQueue<E> |
getDelegate() |
boolean |
offer(E o,
long timeout,
TimeUnit unit) |
E |
poll(long timeout,
TimeUnit unit) |
void |
put(E o) |
int |
remainingCapacity() |
E |
take() |
element, offer, peek, poll, removeadd, addAll, clear, contains, containsAll, equals, getElements, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArraycreateEvent, dispatchEvent, fireAddedEvent, fireRemovedEventaddListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListenerclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetElements, isEmptyaddListener, getListeners, hasListeners, removeListeneradd, contains, offer, removeaddAll, clear, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArraypublic ContainerBlockingQueue(BlockingQueue<E> delegate)
public BlockingQueue<E> getDelegate()
getDelegate in interface IContainerBlockingQueue<E>getDelegate in interface IContainerCollection<E>getDelegate in interface IContainerQueue<E>getDelegate in class ContainerQueue<E>public int drainTo(Collection<? super E> c)
drainTo in interface BlockingQueue<E>public int drainTo(Collection<? super E> c, int maxElements)
drainTo in interface BlockingQueue<E>public boolean offer(E o, long timeout, TimeUnit unit) throws InterruptedException
offer in interface BlockingQueue<E>InterruptedExceptionpublic E poll(long timeout, TimeUnit unit) throws InterruptedException
poll in interface BlockingQueue<E>InterruptedExceptionpublic void put(E o) throws InterruptedException
put in interface BlockingQueue<E>InterruptedExceptionpublic int remainingCapacity()
remainingCapacity in interface BlockingQueue<E>public E take() throws InterruptedException
take in interface BlockingQueue<E>InterruptedExceptionCopyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html