/** * Indicates whether attempts to process operations should be retried on a * newly-created connection if the initial attempt fails in a manner that * indicates that the connection used to process that request may no longer * be valid. Only a single retry will be attempted for any operation. * <BR><BR> * Note that this only applies to methods used to process operations in the * context pool (e.g., using methods that are part of {@code LDAPInterface}), * and will not automatically be used for operations processed on connections * checked out of the pool. * <BR><BR> * This method is provided for the purpose of backward compatibility, but new * functionality has been added to control retry on a per-operation-type * basis via the {@code setRetryFailedOperationsDueToInvalidConnections(Set)} * method. If retry is enabled for any operation type, then this method will * return {@code true}, and it will only return {@code false} if retry should * not be used for any operation type. To determine the operation types for * which failed operations may be retried, use the * {@code getOperationTypesToRetryDueToInvalidConnections()} method. * * @return {@code true} if the connection pool should attempt to retry * operations on a newly-created connection if they fail in a way * that indicates the associated connection may no longer be usable, * or {@code false} if operations should only be attempted once. */ public final boolean retryFailedOperationsDueToInvalidConnections() { return (! getOperationTypesToRetryDueToInvalidConnections().isEmpty()); }
/** * Indicates whether attempts to process operations should be retried on a * newly-created connection if the initial attempt fails in a manner that * indicates that the connection used to process that request may no longer * be valid. Only a single retry will be attempted for any operation. * <BR><BR> * Note that this only applies to methods used to process operations in the * context pool (e.g., using methods that are part of {@link LDAPInterface}), * and will not automatically be used for operations processed on connections * checked out of the pool. * <BR><BR> * This method is provided for the purpose of backward compatibility, but new * functionality has been added to control retry on a per-operation-type * basis via the {@link #setRetryFailedOperationsDueToInvalidConnections(Set)} * method. If retry is enabled for any operation type, then this method will * return {@code true}, and it will only return {@code false} if retry should * not be used for any operation type. To determine the operation types for * which failed operations may be retried, use the * {@link #getOperationTypesToRetryDueToInvalidConnections()} method. * * @return {@code true} if the connection pool should attempt to retry * operations on a newly-created connection if they fail in a way * that indicates the associated connection may no longer be usable, * or {@code false} if operations should only be attempted once. */ public final boolean retryFailedOperationsDueToInvalidConnections() { return (! getOperationTypesToRetryDueToInvalidConnections().isEmpty()); }
getOperationTypesToRetryDueToInvalidConnections().contains( OperationType.SEARCH))
getOperationTypesToRetryDueToInvalidConnections().contains( OperationType.SEARCH))
getOperationTypesToRetryDueToInvalidConnections().contains(o))