org.jtoolkit.essence.data
Interface Event

All Known Implementing Classes:
ClusterEvent, Event.StatusEvent

public interface Event

An Event which can be process by an Event Handler or Event Listener.

A handler takes all Events as Event objects. A handler is not interested in the contents of the event only in routering it.

A listener is notified of events of interest in a decoded way..

Author:
Peter Lawrey

Nested Class Summary
static interface Event.Listenable
          A Listenable can have event handlers and listeners.
static interface Event.Listener
          Process an event based on its contents.
static interface Event.ListenerSet
          A set of handler and listeners.
static class Event.StatusEvent
          Notify that a Listeneable is online/offline.
 
Method Summary
 void notifyListener(Event.Listener l)
          Notify this listener of an event.
 

Method Detail

notifyListener

void notifyListener(@NotNull
                    Event.Listener l)
Notify this listener of an event.



Copyright © Peter Lawrey. All Rights Reserved.