Class WorkerThread
java.lang.Object
com.iizix.server.WorkerThread
- All Implemented Interfaces:
Runnable
Constructor Summary
ConstructorsConstructorDescriptionWorkerThread(Worker worker, Runnable disposeRunnable) Constructs the worker thread.Method Summary
Constructor Details
WorkerThread
Constructs the worker thread.- Parameters:
worker- The worker.disposeRunnable- Runnable that is called when the thread exits due to failure.- Throws:
NullPointerException- if
Method Details
isRunning
public boolean isRunning()Verifies if the thread is running.- Returns:
- The running state.
awaitExit
public void awaitExit()Waits max 30 seconds for worker thread to exit.run