|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.provider.ConnectionStrategies.RoundRobinConnectionStrategy
public static class ConnectionStrategies.RoundRobinConnectionStrategy
Round Robin strategy.
| Field Summary |
|---|
| Fields inherited from interface org.ldaptive.provider.ConnectionStrategy |
|---|
ACTIVE_PASSIVE, DEFAULT, RANDOM, ROUND_ROBIN |
| Constructor Summary | |
|---|---|
ConnectionStrategies.RoundRobinConnectionStrategy()
Creates a new round robin connection strategy. |
|
ConnectionStrategies.RoundRobinConnectionStrategy(boolean b)
Creates a new round robin connection strategy. |
|
| Method Summary | |
|---|---|
protected int |
getCount(int connectionCount)
Returns the supplied connection count if useConnectionCount is
true. |
String[] |
getLdapUrls(ConnectionFactoryMetadata metadata)
Return a list of URLs that cycles the list order. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionStrategies.RoundRobinConnectionStrategy()
public ConnectionStrategies.RoundRobinConnectionStrategy(boolean b)
b - whether getLdapUrls(ConnectionFactoryMetadata) should
used the connectionCount parameter| Method Detail |
|---|
public String[] getLdapUrls(ConnectionFactoryMetadata metadata)
getLdapUrls in interface ConnectionStrategymetadata - which can be used to produce the URL list
protected int getCount(int connectionCount)
useConnectionCount is
true. Otherwise returns invocationCount.
connectionCount - as reported by the connection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||