protected class UnboundIDConnection.AggregateDisconnectHandler extends Object implements com.unboundid.ldap.sdk.DisconnectHandler
Modifier and Type | Field and Description |
---|---|
private Queue<com.unboundid.ldap.sdk.DisconnectHandler> |
handlers
Handlers to receive disconnect notifications.
|
Modifier | Constructor and Description |
---|---|
protected |
AggregateDisconnectHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addDisconnectHandler(com.unboundid.ldap.sdk.DisconnectHandler handler)
Adds an disconnect handler to this handler.
|
void |
handleDisconnect(com.unboundid.ldap.sdk.LDAPConnection ldapConnection,
String host,
int port,
com.unboundid.ldap.sdk.DisconnectType disconnectType,
String message,
Throwable throwable) |
void |
removeDisconnectHandler(com.unboundid.ldap.sdk.DisconnectHandler handler)
Removes a disconnect handler from this handler.
|
private final Queue<com.unboundid.ldap.sdk.DisconnectHandler> handlers
public void addDisconnectHandler(com.unboundid.ldap.sdk.DisconnectHandler handler)
handler
- to receive disconnect notificationspublic void removeDisconnectHandler(com.unboundid.ldap.sdk.DisconnectHandler handler)
handler
- to stop receiving disconnect notificationsCopyright © 2003-2019 Virginia Tech. All Rights Reserved.