Package org.ldaptive

Class ClosedRetryMetadata

  • All Implemented Interfaces:
    RetryMetadata

    public class ClosedRetryMetadata
    extends AbstractRetryMetadata
    Retry metadata used when a connection is unexpectedly closed.
    Author:
    Middleware Services
    • Field Detail

      • failureException

        protected final java.lang.Throwable failureException
        Last thrown exception.
    • Constructor Detail

      • ClosedRetryMetadata

        public ClosedRetryMetadata​(java.time.Instant time,
                                   java.lang.Throwable ex)
        Creates a new closed retry metadata.
        Parameters:
        time - of last successful connection
        ex - exception that caused the connection to close
    • Method Detail

      • getFailureException

        public java.lang.Throwable getFailureException()
        Returns the exception that caused the closed connection.
        Returns:
        failure exception