com.caucho.resources
Class TaskResource

java.lang.Object
  extended by com.caucho.resources.TaskResource

public class TaskResource
extends java.lang.Object

The task resource starts a background task on initialization. intervals.


Constructor Summary
TaskResource()
           
 
Method Summary
 void init()
          Initialization.
 void setWork(java.lang.Runnable work)
          Sets the work task.
 void start()
          Starting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskResource

public TaskResource()
Method Detail

setWork

public void setWork(java.lang.Runnable work)
Sets the work task.


init

@PostConstruct
public void init()
          throws ConfigException
Initialization.

Throws:
ConfigException

start

public void start()
Starting.