public class SynchronizeBlockingQueue<E> extends Object implements SimpleBlockingQueue<E>
Constructor and Description |
---|
SynchronizeBlockingQueue(int limit) |
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty() |
void |
put(E item) |
int |
size()
Returns the number of elements in this queue.
|
E |
take() |
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.