fulmine.event.system
Class UnsubscribeEvent

java.lang.Object
  extended by fulmine.event.AbstractEvent
      extended by fulmine.event.system.AbstractSystemEvent
          extended by fulmine.event.system.UnsubscribeEvent
All Implemented Interfaces:
IEvent, ISystemEvent, IAddressable, IDescriptor, Cloneable

public final class UnsubscribeEvent
extends AbstractSystemEvent

A system event raised when an ISubscriptionManager removes a subscription.

Application code can register an ISystemEventListener to receive these events in order to stop servicing the affected event source(s). However, the event source(s) may have other subscriptions still requiring servicing; application code needs to check how many IEventListener instances are still attached to any of the matching IEventSource instances for the subscription before performing any cleanup for the resources servicing the source.

Author:
Ramon Servadei
See Also:
SubscribeEvent, ISubscriptionListener, ISubscriptionManager.unsubscribe(fulmine.event.subscription.ISubscriptionParameters)

Constructor Summary
UnsubscribeEvent(IEventManager context, IAddressable id)
          Standard constructor
 
Method Summary
 
Methods inherited from class fulmine.event.system.AbstractSystemEvent
getAdditionalToString, hideSourceFromToString
 
Methods inherited from class fulmine.event.AbstractEvent
clone, equals, getAddress, getDomain, getDrivingFrame, getFrame, getIdentity, getSource, getTriggerEvent, getType, hashCode, setAddress, setDrivingFrame, setFrame, setSource, setTriggerEvent, toDetailedString, toIdentityString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fulmine.event.IEvent
clone, getDrivingFrame, getFrame, getSource, getTriggerEvent, setTriggerEvent
 
Methods inherited from interface fulmine.IDescriptor
toDetailedString, toIdentityString
 
Methods inherited from interface fulmine.IAddressable
getAddress, getDomain, getIdentity, getType
 

Constructor Detail

UnsubscribeEvent

public UnsubscribeEvent(IEventManager context,
                        IAddressable id)
Standard constructor

Parameters:
context - the context the event is handled in
id - the subscription parameters


Copyright © 2007-2009. All Rights Reserved.