com.epam.common.thread.queue
Class BlockingQueueAdapter<E>
java.lang.Object
com.epam.common.thread.queue.BlockingQueueAdapter<E>
- All Implemented Interfaces:
- SimpleBlockingQueue<E>
public class BlockingQueueAdapter<E>
- extends Object
- implements SimpleBlockingQueue<E>
User: Mykhailo_Sereda
Date: 08.11.12
Time: 15:00
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockingQueueAdapter
public BlockingQueueAdapter(BlockingQueue<E> queue)
put
public void put(E item)
throws InterruptedException
- Specified by:
put
in interface SimpleBlockingQueue<E>
- Throws:
InterruptedException
take
public E take()
throws InterruptedException
- Specified by:
take
in interface SimpleBlockingQueue<E>
- Throws:
InterruptedException
size
public int size()
- Specified by:
size
in interface SimpleBlockingQueue<E>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface SimpleBlockingQueue<E>
Copyright © 2000-2014 EPAM Systems. All Rights Reserved.