public abstract class NamingExceptionRetryHandler extends ExceptionRetryHandler
NamingExceptionRetryHandler narrows the set of Exceptions throwable
by perform to NamingException and its subclasses.
RuntimeExceptions are not retried.
org.apache.james.user.ldap.ExceptionRetryHandler| Constructor and Description |
|---|
NamingExceptionRetryHandler(Class<?>[] exceptionClasses,
ExceptionRetryingProxy proxy,
RetrySchedule schedule,
int maxRetries)
Creates a new instance of NamingExceptionRetryHandler.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
perform() |
void |
postFailure(Exception ex,
int retryCount)
A hook invoked each time an operation fails if a retry is scheduled
|
void |
postFailure(NamingException ex,
int retryCount) |
getRetryInterval, operationpublic NamingExceptionRetryHandler(Class<?>[] exceptionClasses, ExceptionRetryingProxy proxy, RetrySchedule schedule, int maxRetries)
exceptionClasses - proxy - schedule - maxRetries - public Object perform() throws NamingException
perform in interface RetryHandlerperform in class ExceptionRetryHandlerNamingExceptionorg.apache.james.user.ldap.ExceptionRetryHandler#perform()public void postFailure(Exception ex, int retryCount)
RetryHandlerpostFailure in interface RetryHandlerpostFailure in class ExceptionRetryHandlerex - The Exception thrown when the operation was invokedretryCount - The number of timesorg.apache.james.user.ldap.api.RetryHandler#postFailure(java.lang.Exception, int)public void postFailure(NamingException ex, int retryCount)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.