Maven module :un.api : api-common :
Class : un.api.event.Monitor
Extends/Implements : un.api.event.EventListener
Subclasses : -

A monitor is an object informed of status events.
Monitors are often given as parameter for long process.
This pattern allows to display progress informations and cancel request.
This interface expect events of type MonitorEvent.
author  Johann Sorel


Variables : -
Functions : isCancelRequested, isPauseRequested, isResumeRequested, cancel, pause, resume



boolean isCancelRequested ()

boolean isPauseRequested ()

boolean isResumeRequested ()


Request to stop the ongoing work.
Canceling might not be supported by all monitored objects.
void cancel ()


Request to pause the ongoing work.
Pausing/Resuming might not be supported by all monitored objects.
void pause ()


Request to resume the ongoing work.
Pausing/Resuming might not be supported by all monitored objects.
void resume ()