public interface LoadBalancingAlgorithm extends Closeable
| Modifier and Type | Field and Description |
|---|---|
static org.forgerock.util.Option<LoadBalancerEventListener> |
LOAD_BALANCER_EVENT_LISTENER
Specifies the event listener which should be notified whenever a load-balanced connection factory changes state
from online to offline or vice-versa.
|
static org.forgerock.util.Option<org.forgerock.util.time.Duration> |
LOAD_BALANCER_MONITORING_INTERVAL
Specifies the interval between successive attempts to reconnect to offline load-balanced connection factories.
|
static org.forgerock.util.Option<ScheduledExecutorService> |
LOAD_BALANCER_SCHEDULER
Specifies the scheduler which will be used for periodically reconnecting to offline connection factories.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases any resources associated with this algorithm, including any associated connection factories.
|
ConnectionFactory |
getConnectionFactory()
Returns a connection factory which should be used in order to satisfy the next connection request.
|
static final org.forgerock.util.Option<org.forgerock.util.time.Duration> LOAD_BALANCER_MONITORING_INTERVAL
static final org.forgerock.util.Option<LoadBalancerEventListener> LOAD_BALANCER_EVENT_LISTENER
LoadBalancingAlgorithm
logger using the LoadBalancerEventListener.LOG_EVENTS listener.static final org.forgerock.util.Option<ScheduledExecutorService> LOAD_BALANCER_SCHEDULER
void close()
close in interface AutoCloseableclose in interface CloseableConnectionFactory getConnectionFactory() throws LdapException
LdapException - If no connection factories are available for use.Copyright © 2011-2018 ForgeRock AS. All Rights Reserved.