fulmine.event.subscription
Interface ISubscriptionListener

All Superinterfaces:
IEventListener, ISystemEventListener

public interface ISubscriptionListener
extends ISystemEventListener

Receives notifications when a local IContainer is subscribed or unsubscribed for, when the first IEventListener is added and when there are no more listeners. This occurs either locally via IDistributionManager.subscribe(String, String, IType, IDomain, fulmine.event.listener.IEventListener) or when a remote context subscribes for the event source. The events received are one of:

The UnsubscribeEvent informs the listener that a subscription has terminated, however there maybe other subscriptions that intersect with the IEventSource instances covered by the terminated subscription. Because of this, removing all resources servicing all matching IEventSource for an UnsubscribeEvent should not be done. The EventSourceNotObservedEvent should be used to clean up any resources that are servicing the identified IEventSource.

Author:
Ramon Servadei
See Also:
IDistributionManager.addSubscriptionListener(ISubscriptionListener), IDistributionManager.removeSubscriptionListener(ISubscriptionListener), IDistributionManager.subscribe(String, String, IType, IDomain, fulmine.event.listener.IEventListener), IDistributionManager.unsubscribe(String, String, IType, IDomain, fulmine.event.listener.IEventListener)

Method Summary
 
Methods inherited from interface fulmine.event.listener.IEventListener
addedAsListenerFor, getEventTypeFilter, removedAsListenerFrom, update
 



Copyright © 2007-2009. All Rights Reserved.