Package org.nuxeo.ecm.directory.ldap
Class LdapRetryHandler
- java.lang.Object
- 
- org.nuxeo.ecm.directory.ldap.LdapRetryHandler
 
- 
- All Implemented Interfaces:
- InvocationHandler
 
 public class LdapRetryHandler extends Object implements InvocationHandler Wrapper to encapsulate the calls to LDAP and retry the requests in case of ServiceUnavailableException errors- Since:
- 5.7
- Author:
- Thierry Martins
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected intattemptsNumberprotected DirContextdirContext
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedLdapRetryHandler(DirContext object, int attempts)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectinvoke(Object proxy, Method method, Object[] args)static DirContextwrap(DirContext dirContext, int retries)
 
- 
- 
- 
Field Detail- 
dirContextprotected DirContext dirContext 
 - 
attemptsNumberprotected int attemptsNumber 
 
- 
 - 
Constructor Detail- 
LdapRetryHandlerprotected LdapRetryHandler(DirContext object, int attempts) 
 
- 
 - 
Method Detail- 
invokepublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable - Specified by:
- invokein interface- InvocationHandler
- Throws:
- Throwable
 
 - 
wrappublic static DirContext wrap(DirContext dirContext, int retries) 
 
- 
 
-