public class LoadManagingExecutionService.Task
extends java.lang.Object
implements java.lang.Runnable, java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
protected IExecutable |
executable
The task.
|
protected double |
priority
The priority.
|
protected int |
seqnr
The 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.Runnable
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
toString
in class java.lang.Object