public class Consumer extends java.lang.Object implements java.lang.Runnable
| Modifier and Type | Field and Description | 
|---|---|
| private static int | DELAY | 
| private int | greetingCount | 
| private BoundedQueue<java.lang.String> | queue | 
| Constructor and Description | 
|---|
| Consumer(BoundedQueue<java.lang.String> aQueue,
        int count)Constructs the consumer object. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | run() | 
private BoundedQueue<java.lang.String> queue
private int greetingCount
private static final int DELAY
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