public class GreetingProducer extends java.lang.Object implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private static int |
DELAY |
private java.lang.String |
greeting |
private static int |
REPETITIONS |
Constructor and Description |
---|
GreetingProducer(java.lang.String aGreeting)
Constructs the producer object.
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
private java.lang.String greeting
private static final int REPETITIONS
private static final int DELAY
public GreetingProducer(java.lang.String aGreeting)
aGreeting
- the greeting to displaypublic void run()
run
in interface java.lang.Runnable