Interface DisconnectHandler

    • Method Detail

      • handleDisconnect

        void handleDisconnect​(@NotNull
                              LDAPConnection connection,
                              @NotNull
                              java.lang.String host,
                              int port,
                              @NotNull
                              DisconnectType disconnectType,
                              @Nullable
                              java.lang.String message,
                              @Nullable
                              java.lang.Throwable cause)
        Performs any processing that may be necessary in response to the closure of the provided connection.
        Parameters:
        connection - The connection that has been closed.
        host - The address of the server to which the connection had been established.
        port - The port of the server to which the connection had been established.
        disconnectType - The disconnect type, which provides general information about the nature of the disconnect.
        message - A message that may be associated with the disconnect. It may be null if no message is available.
        cause - A Throwable that was caught and triggered the disconnect. It may be null if the disconnect was not triggered by a client-side exception or error.