org.avis.client
Interface GeneralNotificationListener

All Superinterfaces:
EventListener

public interface GeneralNotificationListener
extends EventListener

A listener to notifications received by any subscription created by an elvin connection. This differs from notification listeners added to a subscription in that all notifications received by a connection are available to this type of listener.

A general subscription listener can be useful in the case where multiple subscriptions match a notification and the client only wishes to process each notification once. Another way to handle this would be to mark processed notifications with the AvisEventObject.setData(String, Object) and AvisEventObject.getData(String) methods.

Author:
Matthew Phillips
See Also:
Elvin.addNotificationListener(GeneralNotificationListener), NotificationListener

Method Summary
 void notificationReceived(GeneralNotificationEvent e)
          Called when a notification is received.
 

Method Detail

notificationReceived

void notificationReceived(GeneralNotificationEvent e)
Called when a notification is received.



Copyright © 2008 Matthew Phillips. All Rights Reserved.