public class BlockingQueueAdapter<E> extends Object implements SimpleBlockingQueue<E>
Constructor and Description |
---|
BlockingQueueAdapter(BlockingQueue<E> queue) |
public BlockingQueueAdapter(BlockingQueue<E> queue)
public void put(E item) throws InterruptedException
put
in interface SimpleBlockingQueue<E>
InterruptedException
public E take() throws InterruptedException
take
in interface SimpleBlockingQueue<E>
InterruptedException
public int size()
size
in interface SimpleBlockingQueue<E>
public boolean isEmpty()
isEmpty
in interface SimpleBlockingQueue<E>
Copyright © 2000–2022 EPAM Systems. All rights reserved.