com.epam.common.thread.queue
Class BlockingQueueAdapter<E>

java.lang.Object
  extended by 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


Constructor Summary
BlockingQueueAdapter(BlockingQueue<E> queue)
           
 
Method Summary
 boolean isEmpty()
           
 void put(E item)
           
 int size()
           
 E take()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockingQueueAdapter

public BlockingQueueAdapter(BlockingQueue<E> queue)
Method Detail

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.