public abstract static class AbstractDispatcher.Task extends Object implements Dispatcher.Task
Runnable for submission to Dispatcher.
Provides empty implementation for Dispatcher.Task.stageEnded(...).
Allows associating a BusMessage and a reference time with a task.| Modifier and Type | Field and Description |
|---|---|
protected BusMessage |
busMessage |
protected long |
refTime |
| Constructor and Description |
|---|
Task(BusMessage busMessage) |
Task(BusMessage busMessage,
long referenceTime) |
| Modifier and Type | Method and Description |
|---|---|
BusMessage |
getBusMessage()
Return the
BusMessage sent or received by this task, if any. |
long |
getRefTime()
Returns the reference time stamp (milliseconds since millennium) for this task.
|
void |
stageEnded(Dispatcher.Stage stage)
Do nothing at the end of a stage.
|
protected final BusMessage busMessage
protected final long refTime
public Task(BusMessage busMessage, long referenceTime)
public Task(BusMessage busMessage)
public BusMessage getBusMessage()
BusMessage sent or received by this task, if any.null if this task is not sending or receiving a message.public long getRefTime()
public void stageEnded(Dispatcher.Stage stage)
stageEnded in interface Dispatcher.Taskstage - Stage that have been just completed.Copyright © 2024 LSST. All rights reserved.