@SCJAllowed public abstract class PeriodicEventHandler extends ManagedEventHandler
handleAsyncEvent method behaves as if the handler were
attached to a periodic asynchronous event.
This class is abstract, non-abstract sub-classes must implement the method
handleAsyncEvent and may override the default cleanUp method.
Note that the values in parameters passed to the constructors are those that will
be used by the infrastructure. Changing these values after construction will
have no impact on the created event handler.
| Constructor and Description |
|---|
PeriodicEventHandler(PriorityParameters priority,
PeriodicParameters release,
StorageParameters storage)
Constructs a periodic event handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
register()
Registers this event handler with the current mission.
|
cleanUp, getLastReleaseTime, handleAsyncEventpublic PeriodicEventHandler(PriorityParameters priority, PeriodicParameters release, StorageParameters storage)
priority - specifies the priority parameters for this periodic event handler.
Must not be null.release - specifies the periodic release parameters, in particular the start time,
period and deadline miss handler. Note that a relative start time is not relative to now,
rather it is relative to the point in time when initialization is finished and the timers
are started. This argument must not be null.storage - specifies the storage parameters for the periodic event handler.
It must not be null.java.lang.IllegalArgumentException - if priority, release or storage is null.public final void register()
ManagedEventHandlerregister in interface ManagedSchedulableregister in class ManagedEventHandler