org.lobobrowser.util

Class JoinableTask

Implemented Interfaces:
Runnable, SimpleThreadPoolTask

public abstract class JoinableTask
extends java.lang.Object
implements SimpleThreadPoolTask

A task that can be used in a thread or thread pool. The caller can wait for the task to finish by joining it.

Method Summary

void
cancel()
protected abstract void
execute()
void
forceDone()
void
join()
void
run()

Method Details

cancel

public void cancel()
Specified by:
cancel in interface SimpleThreadPoolTask

execute

protected abstract void execute()

forceDone

public final void forceDone()

join

public void join()
            throws InterruptedException

run

public final void run()