public abstract class RetryingContext extends Object implements Context, ExceptionRetryingProxy
RetryingContext
retries the methods defined by javax.naming.Context
according to the specified schedule.ExceptionRetryHandler
,
ExceptionRetryingProxy
,
Context
Modifier and Type | Field and Description |
---|---|
static Class<?>[] |
DEFAULT_EXCEPTION_CLASSES |
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES
Constructor and Description |
---|
RetryingContext(Class<?>[] exceptionClasses,
RetrySchedule schedule,
int maxRetries,
org.slf4j.Logger logger)
Creates a new instance of RetryingContext.
|
RetryingContext(RetrySchedule schedule,
int maxRetries,
org.slf4j.Logger logger)
Creates a new instance of RetryingContext using the default exception
classes thrown when an external interruption to services on which we
depend occurs.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newDelegate
public static final Class<?>[] DEFAULT_EXCEPTION_CLASSES
public RetryingContext(RetrySchedule schedule, int maxRetries, org.slf4j.Logger logger) throws NamingException
schedule
- maxRetries
- logger
- NamingException
public RetryingContext(Class<?>[] exceptionClasses, RetrySchedule schedule, int maxRetries, org.slf4j.Logger logger) throws NamingException
exceptionClasses
- schedule
- maxRetries
- logger
- NamingException
public Object addToEnvironment(String propName, Object propVal) throws NamingException
addToEnvironment
in interface Context
NamingException
Context.addToEnvironment(java.lang.String,
java.lang.Object)
public void bind(Name name, Object obj) throws NamingException
bind
in interface Context
NamingException
Context.bind(javax.naming.Name, java.lang.Object)
public void bind(String name, Object obj) throws NamingException
bind
in interface Context
NamingException
Context.bind(java.lang.String, java.lang.Object)
public void close() throws NamingException
close
in interface Context
NamingException
Context.close()
public Name composeName(Name name, Name prefix) throws NamingException
composeName
in interface Context
NamingException
Context.composeName(javax.naming.Name,
javax.naming.Name)
public String composeName(String name, String prefix) throws NamingException
composeName
in interface Context
NamingException
Context.composeName(java.lang.String, java.lang.String)
public Context createSubcontext(Name name) throws NamingException
createSubcontext
in interface Context
NamingException
Context.createSubcontext(javax.naming.Name)
public Context createSubcontext(String name) throws NamingException
createSubcontext
in interface Context
NamingException
Context.createSubcontext(java.lang.String)
public void destroySubcontext(Name name) throws NamingException
destroySubcontext
in interface Context
NamingException
Context.destroySubcontext(javax.naming.Name)
public void destroySubcontext(String name) throws NamingException
destroySubcontext
in interface Context
NamingException
Context.destroySubcontext(java.lang.String)
public Hashtable<?,?> getEnvironment() throws NamingException
getEnvironment
in interface Context
NamingException
Context.getEnvironment()
public String getNameInNamespace() throws NamingException
getNameInNamespace
in interface Context
NamingException
Context.getNameInNamespace()
public NameParser getNameParser(Name name) throws NamingException
getNameParser
in interface Context
NamingException
Context.getNameParser(javax.naming.Name)
public NameParser getNameParser(String name) throws NamingException
getNameParser
in interface Context
NamingException
Context.getNameParser(java.lang.String)
public NamingEnumeration<NameClassPair> list(Name name) throws NamingException
list
in interface Context
NamingException
Context.list(javax.naming.Name)
public NamingEnumeration<NameClassPair> list(String name) throws NamingException
list
in interface Context
NamingException
Context.list(java.lang.String)
public NamingEnumeration<Binding> listBindings(Name name) throws NamingException
listBindings
in interface Context
NamingException
Context.listBindings(javax.naming.Name)
public NamingEnumeration<Binding> listBindings(String name) throws NamingException
listBindings
in interface Context
NamingException
Context.listBindings(java.lang.String)
public Object lookup(Name name) throws NamingException
lookup
in interface Context
NamingException
Context.lookup(javax.naming.Name)
public Object lookup(String name) throws NamingException
lookup
in interface Context
NamingException
Context.lookup(java.lang.String)
public Object lookupLink(Name name) throws NamingException
lookupLink
in interface Context
NamingException
Context.lookupLink(javax.naming.Name)
public Object lookupLink(String name) throws NamingException
lookupLink
in interface Context
NamingException
Context.lookupLink(java.lang.String)
public void rebind(Name name, Object obj) throws NamingException
rebind
in interface Context
NamingException
Context.rebind(javax.naming.Name, java.lang.Object)
public void rebind(String name, Object obj) throws NamingException
rebind
in interface Context
NamingException
Context.rebind(java.lang.String, java.lang.Object)
public Object removeFromEnvironment(String propName) throws NamingException
removeFromEnvironment
in interface Context
NamingException
Context.removeFromEnvironment(java.lang.String)
public void rename(Name oldName, Name newName) throws NamingException
rename
in interface Context
NamingException
Context.rename(javax.naming.Name, javax.naming.Name)
public void rename(String oldName, String newName) throws NamingException
rename
in interface Context
NamingException
Context.rename(java.lang.String, java.lang.String)
public void unbind(Name name) throws NamingException
unbind
in interface Context
NamingException
Context.unbind(javax.naming.Name)
public void unbind(String name) throws NamingException
unbind
in interface Context
NamingException
Context.unbind(java.lang.String)
public Context getDelegate()
getDelegate
in interface ExceptionRetryingProxy
org.apache.james.user.ldap.api.ExceptionRetryingProxy#getDelegate()
public void resetDelegate() throws Exception
ExceptionRetryingProxy
resetDelegate
in interface ExceptionRetryingProxy
Exception
org.apache.james.user.ldap.api.ExceptionRetryingProxy#resetDelegate()
public RetrySchedule getSchedule()
public int getMaxRetries()
public org.slf4j.Logger getLogger()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.