Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  This is free and unencumbered software released into the public domain.
  Anyone is free to copy, modify, publish, use, compile, sell, or
  distribute this software, either in source code form or as a compiled
  binary, for any purpose, commercial or non-commercial, and by any
  In jurisdictions that recognize copyright laws, the author or authors
 of this software dedicate any and all copyright interest in the
 software to the public domain. We make this dedication for the benefit
 of the public at large and to the detriment of our heirs and
 successors. We intend this dedication to be an overt act of
 relinquishment in perpetuity of all present and future rights to this
 software under copyright law.
package base.task;
public abstract class TaskHandler extends Thread {
	protected Task task;
	protected boolean finished = false;

Initialise a regular task.

taskName A plain text tag/name to associate with this task
task The task to be executed by this task handler.
	public TaskHandler(String taskNameTask task) {
		this. = task;

Called by other threads to request that the task handler stops and exits the thread.
	public void shutdown() {
		 = true;

Return the task associated with this TaskHandler.

The task object associated with this TaskHandler
	public Task getTask() {
		return ;
New to GrepCode? Check out our FAQ X