org.ldaptive.provider
Class ConnectionStrategies.ActivePassiveConnectionStrategy
java.lang.Object
org.ldaptive.provider.ConnectionStrategies.ActivePassiveConnectionStrategy
- All Implemented Interfaces:
- ConnectionStrategy
- Enclosing class:
- ConnectionStrategies
public static class ConnectionStrategies.ActivePassiveConnectionStrategy
- extends Object
- implements ConnectionStrategy
Active-Passive strategy.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionStrategies.ActivePassiveConnectionStrategy
public ConnectionStrategies.ActivePassiveConnectionStrategy()
getLdapUrls
public String[] getLdapUrls(ConnectionFactoryMetadata metadata)
- Return the URLs in the order they are provided, so that the first URL is
always tried first, then the second, and so forth.
- Specified by:
getLdapUrls in interface ConnectionStrategy
- Parameters:
metadata - which can be used to produce the URL list
- Returns:
- list of URLs to attempt connections to
Copyright © 2003-2015 Virginia Tech. All Rights Reserved.