com.sap.scheduler.runtime

Interface EventConsumer


public interface EventConsumer

Event consumers can implement this interface in order to get callbacks.


Method Summary
 String getName()
          This method returns a name under which a EventConsumer is registered.
 void handle(Event ev)
          Callback-method which will be called when a event occurs for which the user has registered for.
 

Method Detail

handle

void handle(Event ev)
Callback-method which will be called when a event occurs for which the user has registered for.

Parameters:
ev - the Event with the details.
See Also:
Event, Scheduler.addEventListener(String[], EventConsumer), Scheduler.removeEventListener(EventConsumer)

getName

String getName()
This method returns a name under which a EventConsumer is registered. This information is needed that one and the same EventConsumer-instance will be registered only once. If this method returns null what is allowed the class name is used internally as name.

Returns:
the String representation for the EventConsumer name or null
Access Rights

This class can be accessed from:


SC DC
[sap.com] ENGFACADE [sap.com] tc/je/scheduler/api


Copyright 2010 SAP AG Complete Copyright Notice