public interface NotificationSink
extends javax.ejb.EJBObject
A NotificationSink bean is used to receive notifications with various state
information for a specific task that was scheduled using the Scheduler.create
method.
Use the TaskInfo.setNotificationSink
to set the NotificationSink
of a particular task. When the task fires a notification, a TaskNotificationInfo
object
with the current state information will be sent to the registered NotificationSink bean's handleEvent
method.
All NotificationSinks are required to use
this remote interface and the com.ibm.websphere.scheduler.NotificationSinkHome
home interface .
Modifier and Type | Method and Description |
---|---|
void |
handleEvent(TaskNotificationInfo task)
Called when a scheduled task is scheduled, cancelled, suspended, resumed,
purged and fired.
|
void handleEvent(TaskNotificationInfo task) throws java.rmi.RemoteException
TaskNotificationInfo
object will contain
the event being fired and TaskStatus
of the respective task.task
- the TaskNotificationInfo objectjava.rmi.RemoteException
TaskNotificationInfo
,
TaskStatus