Z
- the database connection sourceD
- the database descriptorpublic interface Balancer<Z,D extends Database<Z>> extends Set<D>
Modifier and Type | Method and Description |
---|---|
Iterable<D> |
backups()
The non-primary databases.
|
<T,R,E extends Exception> |
invoke(Invoker<Z,D,T,R,E> invoker,
D database,
T object)
Invoke the specified invoker on the specified object against the specified database, potentially informing the balancer.
|
D |
next()
Returns the next database from this balancer
|
D |
primary()
Returns the primary database.
|
D primary()
Iterable<D> backups()
D next()
<T,R,E extends Exception> R invoke(Invoker<Z,D,T,R,E> invoker, D database, T object) throws E extends Exception
T
- invoker target object typeR
- invoker return typeE
- invoker exception typeinvoker
- database
- object
- E
E extends Exception
Copyright © 2004–2014 Paul Ferraro. All rights reserved.