net.sf.doolin.bus.support
Class SubscriptionCountBusLog

java.lang.Object
  extended by net.sf.doolin.bus.support.DefaultBusLog
      extended by net.sf.doolin.bus.support.SubscriptionCountBusLog
All Implemented Interfaces:
BusLog

public class SubscriptionCountBusLog
extends DefaultBusLog

This BusLog counts the number of subscriptions in the Bus.

Author:
Damien Coraboeuf

Constructor Summary
SubscriptionCountBusLog()
           
 
Method Summary
 void registrationOk(Subscriber<?> subscriber)
          This method is called when a subscriber is successfully registered.
 void unregistration(Subscriber<?> subscriber)
          This method is called when a subscriber is unregistered.
 
Methods inherited from class net.sf.doolin.bus.support.DefaultBusLog
messageAccepted, messageNoSubscription, messageReceived, messageWithError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionCountBusLog

public SubscriptionCountBusLog()
Method Detail

registrationOk

public void registrationOk(Subscriber<?> subscriber)
Description copied from interface: BusLog
This method is called when a subscriber is successfully registered.

Specified by:
registrationOk in interface BusLog
Overrides:
registrationOk in class DefaultBusLog
Parameters:
subscriber - Registered subscriber.

unregistration

public void unregistration(Subscriber<?> subscriber)
Description copied from interface: BusLog
This method is called when a subscriber is unregistered.

Specified by:
unregistration in interface BusLog
Overrides:
unregistration in class DefaultBusLog
Parameters:
subscriber - Unregistered subscriber.


Copyright © 2011. All Rights Reserved.