public class Failover
extends java.lang.Object
com.thoughtworks.proxy.toys.failover
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
object(java.lang.Class[] types,
ProxyFactory proxyFactory,
java.lang.Object[] delegates,
java.lang.Class exceptionClass)
Create a proxy of a specific types with failover capability using the given objects.
|
static java.lang.Object |
object(java.lang.Class type,
ProxyFactory proxyFactory,
java.lang.Object[] delegates,
java.lang.Class exceptionClass)
Create a proxy of a specific type with failover capability using the given objects.
|
public static java.lang.Object object(java.lang.Class type, ProxyFactory proxyFactory, java.lang.Object[] delegates, java.lang.Class exceptionClass)
type
- the type of the proxyproxyFactory
- the ProxyFactory
to usedelegates
- the delegates used for failoverexceptionClass
- the type of the exceptions triggering failoverpublic static java.lang.Object object(java.lang.Class[] types, ProxyFactory proxyFactory, java.lang.Object[] delegates, java.lang.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