public interface LoadBalancerEventListener extends EventListener
NOTE: load-balancer implementations must ensure that only one event is sent at a time. Event listener implementations should not need to be thread safe.
Modifier and Type | Field and Description |
---|---|
static LoadBalancerEventListener |
LOG_EVENTS
An event listener implementation which logs events to the LoadBalancingAlgorithm logger.
|
static LoadBalancerEventListener |
NO_OP
An event listener implementation which ignores all events.
|
Modifier and Type | Method and Description |
---|---|
void |
handleConnectionFactoryOffline(ConnectionFactory factory,
LdapException error)
Invoked when the load-balancer is unable to obtain a connection from the
specified connection factory.
|
void |
handleConnectionFactoryOnline(ConnectionFactory factory)
Invoked when the load-balancer detects that a previously offline
connection factory is available for use again.
|
static final LoadBalancerEventListener LOG_EVENTS
Connections.LOAD_BALANCER_EVENT_LISTENER
option.static final LoadBalancerEventListener NO_OP
void handleConnectionFactoryOffline(ConnectionFactory factory, LdapException error)
factory
- The connection factory which has failed.error
- The last error that occurred.void handleConnectionFactoryOnline(ConnectionFactory factory)
factory
- The connection factory which is now available for use.Copyright 2010-2017 ForgeRock AS.