Class BasicTask

java.lang.Object
org.jbrew.concurrent.AbstractTask<java.lang.Void>
org.jbrew.concurrent.BasicTask
All Implemented Interfaces:
java.lang.Runnable, Task<java.lang.Void>
Direct Known Subclasses:
StandardNonRetrievableTask

public abstract class BasicTask
extends AbstractTask<java.lang.Void>
A BasicTask object is an abstract implementor of Task allowing for the object to be wrapped inside of a Thread and executed concurrently.

For an object blocking implementation of a AbstractTask (similar to a Callable), please refer to RetrievableTask. At present it contains 2 relevant implementors:
ObjectBlockingTask and MethodBlockingTask.
Author:
Neal Kumar
See Also:
AbstractTask, RetrievableTask, ObjectBlockingTask, MethodBlockingTask
  • Constructor Summary

    Constructors 
    Constructor Description
    BasicTask()  
  • Method Summary

    Modifier and Type Method Description
    void run()

    Methods inherited from class org.jbrew.concurrent.AbstractTask

    execute, getName, getPriority, getThreadId, setName, setPriority

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • run

      public final void run()
      Description copied from class: AbstractTask
      Specified by:
      run in interface java.lang.Runnable
      Overrides:
      run in class AbstractTask<java.lang.Void>