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 Summary
FieldsModifier and TypeFieldDescriptionprivate final BiPredicate<Integer,Instant> Condition on which to continue retry. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new retry validation exception handler.RetryValidationExceptionHandler(BiPredicate<Integer, Instant> condition) Creates a new retry validation exception handler. -
Method Summary
-
Field Details
-
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
Creates a new retry validation exception handler.- Parameters:
condition- on which to retry
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<ValidationException,Connection>
-