|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface INotificationService
INotificationService provides an endpoint that Anzo notification operations are run against.
| Method Summary | |
|---|---|
void |
connect()
Connect to the Notification Server |
void |
disconnect()
Disconnect from the Notification Server |
boolean |
isConnected()
Determine if the INotificationService is connected to the Notification Server |
boolean |
isNotificationEnabled()
Determine if if notification is enabled |
void |
registerNotificationListener(INotificationListener listener)
Register an INotificationListener with service |
void |
registerSelector(java.lang.String selector)
Register a message selector with NotificationServer |
void |
setUsingNotification(boolean enableNotification)
Enable or disable notification |
void |
unregisterNotificationListener(INotificationListener listener)
Unregister an INotificationListener with service |
void |
unregisterSelector(java.lang.String selector)
Unregister a message selector from NotificationServer |
| Methods inherited from interface org.openanzo.services.IService |
|---|
getServicePassword, getServiceUser, setServicePassword, setServiceUser |
| Method Detail |
|---|
void connect()
throws NotificationException
NotificationException - if there was an error connecting to the Notification Server
void disconnect()
throws NotificationException
NotificationException - if there was an error disconnecting to the Notification Serverboolean isConnected()
boolean isNotificationEnabled()
void registerSelector(java.lang.String selector)
throws NotificationException
selector - Message selector to register
NotificationException - if there was an error registering selector with the server
void unregisterSelector(java.lang.String selector)
throws NotificationException
selector - Message selector to unregister
NotificationException - if there was an error unregistering selector from the server
void setUsingNotification(boolean enableNotification)
throws NotificationException
enableNotification - state to set notification service
NotificationException - if enabling or disabling notification failsvoid registerNotificationListener(INotificationListener listener)
INotificationListener with service
listener - to registervoid unregisterNotificationListener(INotificationListener listener)
INotificationListener with service
listener - to unregister
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||