Package com.unboundid.ldap.listener
Interface LDAPListenerExceptionHandler
-
- All Known Implementing Classes:
InMemoryDirectoryServerTool
@Extensible @ThreadSafety(level=INTERFACE_THREADSAFE) public interface LDAPListenerExceptionHandler
This interface defines an API that may be implemented by a class that should be notified whenever a problem occurs with the LDAP listener or any of its associated connections in a manner that may not be directly visible to the caller.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
connectionCreationFailure(java.net.Socket socket, java.lang.Throwable cause)
Indicates that the specified connection is about to be terminated because an unexpected error occurred during processing.void
connectionTerminated(LDAPListenerClientConnection connection, LDAPException cause)
Indicates that the specified connection is about to be terminated because an unexpected error occurred during processing.
-
-
-
Method Detail
-
connectionCreationFailure
void connectionCreationFailure(java.net.Socket socket, java.lang.Throwable cause)
Indicates that the specified connection is about to be terminated because an unexpected error occurred during processing.- Parameters:
socket
- The socket to be used for the failed connection. It may benull
if the failure occurred while attempting to accept the socket rather than attempting to create the client connection from an accepted socket.cause
- An exception providing additional information about the problem that occurred. It will not benull
.
-
connectionTerminated
void connectionTerminated(LDAPListenerClientConnection connection, LDAPException cause)
Indicates that the specified connection is about to be terminated because an unexpected error occurred during processing.- Parameters:
connection
- The connection that will be terminated. It will not benull
.cause
- An exception providing additional information about the reason for the termination. It will not benull
.
-
-