com.thoughtworks.proxy.toys.failover
Class Failover.FailoverExceptingOrBuild<T>

java.lang.Object
  extended by com.thoughtworks.proxy.toys.failover.Failover.FailoverBuild<T>
      extended by com.thoughtworks.proxy.toys.failover.Failover.FailoverExceptingOrBuild<T>
Direct Known Subclasses:
Failover.FailoverWithOrExceptingOrBuild
Enclosing class:
Failover<T>

public static class Failover.FailoverExceptingOrBuild<T>
extends Failover.FailoverBuild<T>


Field Summary
 
Fields inherited from class com.thoughtworks.proxy.toys.failover.Failover.FailoverBuild
failover
 
Method Summary
 Failover.FailoverBuild<T> excepting(Class<? extends Throwable> exceptionClass)
          Excepting this exception class.
 
Methods inherited from class com.thoughtworks.proxy.toys.failover.Failover.FailoverBuild
build
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

excepting

public Failover.FailoverBuild<T> excepting(Class<? extends Throwable> exceptionClass)
Excepting this exception class.

Parameters:
exceptionClass - the type of the exceptions triggering failover
Returns:
a factory that will trigger the usage of the next delegate based on the supplied Throwable type.
Since:
1.0


Copyright © 2005-2010 Codehaus. All Rights Reserved.