public class BlockingDataQueue<E> extends Object
| Constructor and Description |
|---|
BlockingDataQueue(int size)
make queue by size
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
clear the queue
|
boolean |
isEmpty()
is empty or not
|
void |
put(E e)
put in this data, data is not null
|
int |
size()
the size of queue
|
E |
take()
consume a data5959
|
public BlockingDataQueue(int size)
size - public void put(E e) throws Exception
e - Exceptionpublic int size()
public boolean isEmpty()
public void clear()
Copyright © 2016. All rights reserved.