public interface ResourceEventHandler
ResourceEvent.
It defines a method called handleEvent(ResourceEvent) which is used
to define a method of event handling.
For Example, event handlers could be defined which handle an event by outputing the event's message to a console, a file, an e-mail, or even another process.
ResourceEventHandlers are attached to a Resource using the
addEventHandler() method.
implement
Resource,
ResourceEvent,
ResourceOutputHandler| Modifier and Type | Method and Description |
|---|---|
void |
handleEvent(ResourceEvent event)
Handle the event specified in the ResourceEvent
|
void handleEvent(ResourceEvent event) throws ResourceEventException
event - the ResourceEventResourceEventException - if a problem occurs while handling an event