public class Consumer extends java.lang.Object implements java.lang.Runnable
| Constructor and Description |
|---|
Consumer(BoundedQueue<java.lang.String> aQueue,
int count)
Constructs the consumer object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
public Consumer(BoundedQueue<java.lang.String> aQueue, int count)
aQueue - the queue from which to retrieve greetingscount - the number of greetings to consumepublic void run()
run in interface java.lang.Runnable