Package com.epam.common.thread.queue
Class SynchronizeBlockingQueue<E>
java.lang.Object
com.epam.common.thread.queue.SynchronizeBlockingQueue<E>
- All Implemented Interfaces:
SimpleBlockingQueue<E>
User: Mykhailo_Sereda
Date: 05.11.12
Time: 18:42
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SynchronizeBlockingQueue
public SynchronizeBlockingQueue(int limit)
-
-
Method Details
-
put
- Specified by:
put
in interfaceSimpleBlockingQueue<E>
- Throws:
InterruptedException
-
take
- Specified by:
take
in interfaceSimpleBlockingQueue<E>
- Throws:
InterruptedException
-
size
public int size()Returns the number of elements in this queue.- Specified by:
size
in interfaceSimpleBlockingQueue<E>
- Returns:
- the number of elements in this queue
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceSimpleBlockingQueue<E>
-