Package org.ldaptive

Class PooledConnectionFactory.RetryValidationExceptionHandler

java.lang.Object
org.ldaptive.PooledConnectionFactory.RetryValidationExceptionHandler
All Implemented Interfaces:
Function<ValidationException,Connection>, ValidationExceptionHandler
Enclosing class:
PooledConnectionFactory

public class PooledConnectionFactory.RetryValidationExceptionHandler extends Object implements ValidationExceptionHandler
Validation exception handler that attempts to retrieve another connection. By default, this implementation makes AbstractConnectionPool.getMaxPoolSize() attempts or waits BlockingConnectionPool.getBlockWaitTime() whichever occurs first.
  • Field Details

    • continueCondition

      private final BiPredicate<Integer,Instant> continueCondition
      Condition on which to continue retry. First parameter is the count, the second is the time the retry started.
  • Constructor Details

    • RetryValidationExceptionHandler

      public RetryValidationExceptionHandler()
      Creates a new retry validation exception handler.
    • RetryValidationExceptionHandler

      public RetryValidationExceptionHandler(BiPredicate<Integer,Instant> condition)
      Creates a new retry validation exception handler.
      Parameters:
      condition - on which to retry
  • Method Details