Examples of LoggingRetryHandler


Examples of org.apache.james.util.retry.naming.LoggingRetryHandler

    /**
     * @see javax.naming.ldap.LdapContext#extendedOperation(javax.naming.ldap.ExtendedRequest)
     */
    @Override
    public ExtendedResponse extendedOperation(final ExtendedRequest request) throws NamingException {
        return (ExtendedResponse) new LoggingRetryHandler(DEFAULT_EXCEPTION_CLASSES, this, getSchedule(), getMaxRetries(), getLogger()){

            @Override
            public Object operation() throws NamingException {
                return ((LdapContext) getDelegate()).extendedOperation(request);
            }}.perform();
View Full Code Here

Examples of org.apache.james.util.retry.naming.LoggingRetryHandler

    /**
     * @see javax.naming.ldap.LdapContext#getConnectControls()
     */
    @Override
    public Control[] getConnectControls() throws NamingException {
        return (Control[]) new LoggingRetryHandler(DEFAULT_EXCEPTION_CLASSES, this, getSchedule(), getMaxRetries(), getLogger()){

            @Override
            public Object operation() throws NamingException {
                return ((LdapContext) getDelegate()).getConnectControls();
            }}.perform();
View Full Code Here

Examples of org.apache.james.util.retry.naming.LoggingRetryHandler

    /**
     * @see javax.naming.ldap.LdapContext#getRequestControls()
     */
    @Override
    public Control[] getRequestControls() throws NamingException {
        return (Control[]) new LoggingRetryHandler(DEFAULT_EXCEPTION_CLASSES, this, getSchedule(), getMaxRetries(), getLogger()){

            @Override
            public Object operation() throws NamingException {
                return ((LdapContext) getDelegate()).getRequestControls();
            }}.perform();
View Full Code Here

Examples of org.apache.james.util.retry.naming.LoggingRetryHandler

    /**
     * @see javax.naming.ldap.LdapContext#getResponseControls()
     */
    @Override
    public Control[] getResponseControls() throws NamingException {
        return (Control[]) new LoggingRetryHandler(DEFAULT_EXCEPTION_CLASSES, this, getSchedule(), getMaxRetries(), getLogger()){

            @Override
            public Object operation() throws NamingException {
                return ((LdapContext) getDelegate()).getResponseControls();
            }}.perform();
View Full Code Here

Examples of org.apache.james.util.retry.naming.LoggingRetryHandler

    /**
     * @see javax.naming.ldap.LdapContext#reconnect(javax.naming.ldap.Control[])
     */
    @Override
    public void reconnect(final Control[] connCtls) throws NamingException {
        new LoggingRetryHandler(DEFAULT_EXCEPTION_CLASSES, this, getSchedule(), getMaxRetries(), getLogger()){

            @Override
            public Object operation() throws NamingException {
                ((LdapContext) getDelegate()).reconnect(connCtls);
                return null;
View Full Code Here

Examples of org.apache.james.util.retry.naming.LoggingRetryHandler

    /**
     * @see javax.naming.ldap.LdapContext#setRequestControls(javax.naming.ldap.Control[])
     */
    @Override
    public void setRequestControls(final Control[] requestControls) throws NamingException {
        new LoggingRetryHandler(DEFAULT_EXCEPTION_CLASSES, this, getSchedule(), getMaxRetries(), getLogger()){

            @Override
            public Object operation() throws NamingException {
                ((LdapContext) getDelegate()).setRequestControls(requestControls);
                return null;
View Full Code Here

Examples of org.apache.james.util.retry.naming.LoggingRetryHandler

     *      java.lang.Object, javax.naming.directory.Attributes)
     */
    @Override
    public void bind(final Name name, final Object obj, final Attributes attrs)
            throws NamingException {
        new LoggingRetryHandler(DEFAULT_EXCEPTION_CLASSES, this, getSchedule(), getMaxRetries(),
                getLogger()) {

            @Override
            public Object operation() throws NamingException {
                ((DirContext) getDelegate()).bind(name, obj, attrs);
View Full Code Here

Examples of org.apache.james.util.retry.naming.LoggingRetryHandler

     *      java.lang.Object, javax.naming.directory.Attributes)
     */
    @Override
    public void bind(final String name, final Object obj, final Attributes attrs)
            throws NamingException {
        new LoggingRetryHandler(DEFAULT_EXCEPTION_CLASSES, this, getSchedule(), getMaxRetries(),
                getLogger()) {

            @Override
            public Object operation() throws NamingException {
                ((DirContext) getDelegate()).bind(name, obj, attrs);
View Full Code Here

Examples of org.apache.james.util.retry.naming.LoggingRetryHandler

     *      javax.naming.directory.Attributes)
     */
    @Override
    public DirContext createSubcontext(final Name name, final Attributes attrs)
            throws NamingException {
        return (DirContext) new LoggingRetryHandler(DEFAULT_EXCEPTION_CLASSES, this,
                getSchedule(), getMaxRetries(), getLogger()) {

            @Override
            public Object operation() throws NamingException {
                return ((DirContext) getDelegate()).createSubcontext(name, attrs);
View Full Code Here

Examples of org.apache.james.util.retry.naming.LoggingRetryHandler

     *      javax.naming.directory.Attributes)
     */
    @Override
    public DirContext createSubcontext(final String name, final Attributes attrs)
            throws NamingException {
        return (DirContext) new LoggingRetryHandler(DEFAULT_EXCEPTION_CLASSES, this,
                getSchedule(), getMaxRetries(), getLogger()) {

            @Override
            public Object operation() throws NamingException {
                return ((DirContext) getDelegate()).createSubcontext(name, attrs);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.