Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Creative commons Attribution-NonCommercial license. http://creativecommons.org/licenses/by-nc/2.5/au/deed.en_GB NO WARRANTY IS GIVEN OR IMPLIED, USE AT YOUR OWN RISK.
 
 package base.task;
 
public abstract class TaskHandler extends Thread {
	protected Task task;
	protected boolean finished = false;

Initialise a regular task.

Parameters:
taskName
interval
	public TaskHandler(String taskNameTask task) {
		super(taskName);
		this. = task;
	}

Called by other threads to request that the task handler stops and exits the thread.
	public void shutdown() {
		 = true;
		this.interrupt();
	}
	public Task getTask() {
		return ;
	}
New to GrepCode? Check out our FAQ X