|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.thoughtworks.proxy.toys.failover.Failover<T>
public class Failover<T>
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
Nested Class Summary | |
---|---|
static class |
Failover.FailoverBuild<T>
|
static class |
Failover.FailoverExceptingOrBuild<T>
|
static class |
Failover.FailoverWithOrExceptingOrBuild<T>
|
Method Summary | ||
---|---|---|
static
|
proxy(Class<T> type)
Creates a factory for proxy instances handling failover situations. |
|
static
|
proxy(Class<T> primaryType,
Class<?>... types)
Creates a factory for proxy instances handling failover situations. |
|
static
|
proxy(T... delegates)
Creates a factory for proxy instances handling failover situations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> Failover.FailoverWithOrExceptingOrBuild<T> proxy(Class<T> type)
type
- the types of the proxy
public static <T> Failover.FailoverWithOrExceptingOrBuild<T> proxy(Class<T> primaryType, Class<?>... types)
primaryType
- the primary type implemented by the proxytypes
- other types that are implemented by the proxy
public static <T> Failover.FailoverExceptingOrBuild<T> proxy(T... delegates)
delegates
- the array with the delegates in a failover situation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |