public abstract class NamingExceptionRetryHandler extends ExceptionRetryHandler
NamingExceptionRetryHandler
narrows the set of Exceptions throwable
by perform
to NamingException
and its subclasses.
RuntimeException
s 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, operation
public NamingExceptionRetryHandler(Class<?>[] exceptionClasses, ExceptionRetryingProxy proxy, RetrySchedule schedule, int maxRetries)
exceptionClasses
- proxy
- schedule
- maxRetries
- public Object perform() throws NamingException
perform
in interface RetryHandler
perform
in class ExceptionRetryHandler
NamingException
org.apache.james.user.ldap.ExceptionRetryHandler#perform()
public void postFailure(Exception ex, int retryCount)
RetryHandler
postFailure
in interface RetryHandler
postFailure
in class ExceptionRetryHandler
ex
- 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.