- All Implemented Interfaces:
Runnable
manage one worker with n thread
-
Constructor Summary
Constructors
-
Method Summary
void
void
send a message to notify all thread that the worker will be stop.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
run
public void run()
- Specified by:
run
in interface Runnable
-
stop
public void stop()
send a message to notify all thread that the worker will be stop.
-