Package org.ldaptive

Class AbstractRetryMetadata

    • Field Detail

      • successTime

        protected Instant successTime
        Time at which the last success occurred.
      • failureTime

        protected Instant failureTime
        Time at which the failure occurred.
    • Constructor Detail

      • AbstractRetryMetadata

        public AbstractRetryMetadata()
    • Method Detail

      • getAttempts

        public int getAttempts()
        Description copied from interface: RetryMetadata
        Number of attempts for this retry.
        Specified by:
        getAttempts in interface RetryMetadata
        Returns:
        retry attempts
      • recordSuccess

        public void recordSuccess​(Instant time)
        Description copied from interface: RetryMetadata
        Records a connection success at the given instant.
        Specified by:
        recordSuccess in interface RetryMetadata
        Parameters:
        time - Point in time when connection was opened.
      • recordFailure

        public void recordFailure​(Instant time)
        Description copied from interface: RetryMetadata
        Records a connection failure at the given instant.
        Specified by:
        recordFailure in interface RetryMetadata
        Parameters:
        time - Point in time when connection failed.