NotificationService Class

Provides static methods used to post and consume events.

Constructors

There are no public constructors.

Static Methods

notify( String event, String model, Value data ) returns void
Used to post an event and share it with any registered event listeners
eventType of event (e.g. "create", "update", "delete")
modelSubject of the event (e.g. "User", "File", etc)
dataAdditional information related to the event (e.g. User ID)
start( ) returns void
Used to start the notification engine
start( int numThreads ) returns void
stop( ) returns void
Used to stop the notification engine
addListener( Listener listener ) returns void
Used to add an event listener that will consume events