|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.gotoandplay.smartfoxserver.util.scheduling.Task
public class Task
The Task class describes a job to be executed at a specified time, which is handled by the Scheduler class
| Field Summary | |
|---|---|
boolean |
active
By default it is set to true. |
java.lang.Object |
id
A generic object that can be used to identify the task. |
java.util.Map |
parameters
Additional map of parameters that describe the job to execute |
| Constructor Summary | |
|---|---|
Task()
Default constructor |
|
Task(java.lang.Object id)
Pass an object as the id of the task |
|
Task(java.lang.Object id,
java.util.Map mapObj)
Specify an object as the id and a map of additional parameters |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.Object id
public java.util.Map parameters
public volatile boolean active
| Constructor Detail |
|---|
public Task()
public Task(java.lang.Object id)
id - the id of the Task
public Task(java.lang.Object id,
java.util.Map mapObj)
id - the id of the objectmapObj - a map of parameters of the task
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||