|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thoughtworks.proxy.toys.failover.Failover
public class Failover
Factory for proxy instances handling failover.. Delegates to one object as long as there is no exception, fails over to the next when an exception occurs.
com.thoughtworks.proxy.toys.failover
Method Summary | |
---|---|
static Object |
object(Class[] types,
ProxyFactory proxyFactory,
Object[] delegates,
Class exceptionClass)
Create a proxy of a specific types with failover capability using the given objects. |
static Object |
object(Class type,
ProxyFactory proxyFactory,
Object[] delegates,
Class exceptionClass)
Create a proxy of a specific type with failover capability using the given objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Object object(Class type, ProxyFactory proxyFactory, Object[] delegates, Class exceptionClass)
type
- the type of the proxyproxyFactory
- the ProxyFactory
to usedelegates
- the delegates used for failoverexceptionClass
- the type of the exceptions triggering failover
public static Object object(Class[] types, ProxyFactory proxyFactory, Object[] delegates, Class exceptionClass)
types
- the implemented types of the proxyproxyFactory
- the ProxyFactory
to usedelegates
- the delegates used for failoverexceptionClass
- the type of the exceptions triggering failover
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |