Package org.bedework.util.jms
Class NotificationsHandler
- java.lang.Object
-
- org.bedework.util.jms.NotificationsHandler
-
- Direct Known Subclasses:
JmsNotificationsHandlerImpl
public abstract class NotificationsHandler extends Object
Handler which may be called to notify the system that something changed.Some implementations may be able to call immediately changes take effect, for example the bedework hibernate implementation can call at the point a calendar is changed. Others may have to poll to determine if something has changed.
- Author:
- Mike Douglass
-
-
Constructor Summary
Constructors Constructor Description NotificationsHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidpost(SysEvent ev)Called to notify container that an event occurred.abstract voidregisterListener(SysEventListener l, boolean persistent)Register a listener.abstract voidremoveListener(SysEventListener l)Remove a listener.
-
-
-
Method Detail
-
post
public abstract void post(SysEvent ev) throws NotificationException
Called to notify container that an event occurred.- Parameters:
ev- the event- Throws:
NotificationException- on fatal error
-
registerListener
public abstract void registerListener(SysEventListener l, boolean persistent) throws NotificationException
Register a listener.- Parameters:
l- the listenerpersistent- true if this listener is to be stored in the database and reregistered at each system startup.- Throws:
NotificationException- on fatal error
-
removeListener
public abstract void removeListener(SysEventListener l) throws NotificationException
Remove a listener. If persistent it will be deleted from the database.- Parameters:
l- the listener- Throws:
NotificationException- on fatal error
-
-