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.
LdapClients.LOAD_BALANCER_EVENT_LISTENER
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 |
handleLdapClientOffline(LdapClient client,
LdapException error)
Invoked when the load-balancer is unable to obtain a connection from the
specified LDAP client.
|
void |
handleLdapClientOnline(LdapClient client)
Invoked when the load-balancer detects that a previously offline
LDAP client is available for use again.
|
static final LoadBalancerEventListener LOG_EVENTS
LdapClients.LOAD_BALANCER_EVENT_LISTENER
option.static final LoadBalancerEventListener NO_OP
void handleLdapClientOffline(LdapClient client, LdapException error)
client
- The LDAP client which has failed.error
- The last error that occurred.void handleLdapClientOnline(LdapClient client)
client
- The LDAP client which is now available for use.Copyright 2010-2020 ForgeRock AS.