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(java.util.concurrent.BlockingQueue<E> delegate) |
| Modifier and Type | Method and Description |
|---|---|
int |
drainTo(java.util.Collection<? super E> c) |
int |
drainTo(java.util.Collection<? super E> c,
int maxElements) |
java.util.concurrent.BlockingQueue<E> |
getDelegate() |
boolean |
offer(E o,
long timeout,
java.util.concurrent.TimeUnit unit) |
E |
poll(long timeout,
java.util.concurrent.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, removeListenerpublic ContainerBlockingQueue(java.util.concurrent.BlockingQueue<E> delegate)
public java.util.concurrent.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(java.util.Collection<? super E> c)
drainTo in interface java.util.concurrent.BlockingQueue<E>public int drainTo(java.util.Collection<? super E> c, int maxElements)
drainTo in interface java.util.concurrent.BlockingQueue<E>public boolean offer(E o, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
offer in interface java.util.concurrent.BlockingQueue<E>java.lang.InterruptedExceptionpublic E poll(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
poll in interface java.util.concurrent.BlockingQueue<E>java.lang.InterruptedExceptionpublic void put(E o) throws java.lang.InterruptedException
put in interface java.util.concurrent.BlockingQueue<E>java.lang.InterruptedExceptionpublic int remainingCapacity()
remainingCapacity in interface java.util.concurrent.BlockingQueue<E>Copyright (c) 2004-2019 Eike Stepper (Loehne, 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