nyla.solutions.global.patterns.workthread.SupervisedWorker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nyla.solutions.global Show documentation
Show all versions of nyla.solutions.global Show documentation
Nyla Solutions Global Java API provides support for basic application
utilities (application configuration, data encryption, debugger and text
processing).
The newest version!
package nyla.solutions.global.patterns.workthread;
/**
*
*
* Worker interface for an object managed by the supervisor thread.
*
*
* @author Gregory Green
* @version 1.0
*/
public interface SupervisedWorker extends Worker
{
/**
*
* @return the worker's thread
*/
public Thread getThread();
/**
*
* @param workState work state
*/
public void setWorkState(WorkState workState);
/**
*
* @return the work state
*/
public WorkState getWorkState();
/**
*
* @return the supervisor of the worker
*/
public Supervisor getSupervisor();
/**
*
* @param supervisor the supervisor
*/
public void setSupervisor(Supervisor supervisor);
}