net.sf.doolin.bus.support
Class TriggeredSubscriberValidator

java.lang.Object
  extended by net.sf.doolin.bus.support.TriggeredSubscriberValidator
All Implemented Interfaces:
SubscriberValidator

public class TriggeredSubscriberValidator
extends Object
implements SubscriberValidator

This SubscriberValidator can be controlled programmaticaly by manually stopping it. Note that is is not possible to restart this validator.

Author:
Damien Coraboeuf

Constructor Summary
TriggeredSubscriberValidator()
           
 
Method Summary
 String getValidatorDescription()
          Gets a description for this validator
 boolean isValid()
          Checks if the subscription is still valid.
 void stop()
          Stops the validator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriggeredSubscriberValidator

public TriggeredSubscriberValidator()
Method Detail

getValidatorDescription

public String getValidatorDescription()
Description copied from interface: SubscriberValidator
Gets a description for this validator

Specified by:
getValidatorDescription in interface SubscriberValidator

isValid

public boolean isValid()
Description copied from interface: SubscriberValidator
Checks if the subscription is still valid.

Specified by:
isValid in interface SubscriberValidator
Returns:
true if the subscription is still valid, false otherwise.

stop

public void stop()
Stops the validator. After this, any call to isValid() will return false.



Copyright © 2011. All Rights Reserved.