public class TLspTaskExecutorEvent extends EventObject
A task executor event describes the changes to a task from a
ILspTaskExecutor
Modifier and Type | Class and Description |
---|---|
static class |
TLspTaskExecutorEvent.Type
Defines the type of a
TLspTaskExecutorEvent |
source
Constructor and Description |
---|
TLspTaskExecutorEvent(TLspTaskExecutorRunnable aRunnable,
long aTimeTaken,
int aOtherTaskCount,
TLspTaskExecutorEvent.Type aType,
Throwable aThrowable)
Creates a task executor event with the given parameters
|
Modifier and Type | Method and Description |
---|---|
int |
getOtherTaskCount()
Returns the amount of other tasks that are currently scheduled for the same source.
|
TLspTaskExecutorRunnable |
getRunnable()
Gets the task that is associated with this event.
|
Throwable |
getThrowable()
Returns the throwable that was thrown during execution of this task.
|
long |
getTimeTaken()
Returns the time that the time took in milliseconds.
|
TLspTaskExecutorEvent.Type |
getType()
Gets the type of this executor event.
|
getSource, toString
public TLspTaskExecutorEvent(TLspTaskExecutorRunnable aRunnable, long aTimeTaken, int aOtherTaskCount, TLspTaskExecutorEvent.Type aType, Throwable aThrowable)
aRunnable
- A delegateaTimeTaken
- The time the runnable was in progress in milliseconds, or -1 if it could not be determined how
long this task has been in progress.aOtherTaskCount
- The amount of other tasks still scheduled for the same sourceaType
- The type of eventaThrowable
- A throwable that was thrown during the execution of the runnable. Can be null.public TLspTaskExecutorEvent.Type getType()
Type
public TLspTaskExecutorRunnable getRunnable()
public long getTimeTaken()
public int getOtherTaskCount()