public class LoadManagingExecutionService.Task
extends java.lang.Object
implements java.lang.Runnable, java.lang.Comparable
| Modifier and Type | Field and Description | 
|---|---|
| protected IExecutable | executableThe task. | 
| protected double | priorityThe priority. | 
| protected int | seqnrThe sequence number. | 
| Constructor and Description | 
|---|
| Task(IExecutable task,
    double priority)Create a new task info for a given task. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(java.lang.Object obj)Return a negative integer, zero, or a positive integer as this object
                is less than, equal to, or greater than the specified object. | 
| void | run()Perform the task once and notify the manager. | 
| java.lang.String | toString()Create a string representation of the task info. | 
protected IExecutable executable
protected double priority
protected int seqnr
public Task(IExecutable task, double priority)
public void run()
run in interface java.lang.Runnablepublic int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparablepublic java.lang.String toString()
toString in class java.lang.Object