Package org.apache.james.util.retry.naming

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


    @SuppressWarnings("unchecked")
    @Override
    public NamingEnumeration<SearchResult> search(final Name name,
            final Attributes matchingAttributes)
            throws NamingException {
        return (NamingEnumeration<SearchResult>) new LoggingRetryHandler(
                DEFAULT_EXCEPTION_CLASSES, this, getSchedule(), getMaxRetries(), getLogger()) {

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


    @SuppressWarnings("unchecked")
    @Override
    public NamingEnumeration<SearchResult> search(final String name,
            final Attributes matchingAttributes)
            throws NamingException {
        return (NamingEnumeration<SearchResult>) new LoggingRetryHandler(
                DEFAULT_EXCEPTION_CLASSES, this, getSchedule(), getMaxRetries(), getLogger()) {

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

    @SuppressWarnings("unchecked")
    @Override
    public NamingEnumeration<SearchResult> search(final Name name,
            final Attributes matchingAttributes,
            String[] attributesToReturn) throws NamingException {
        return (NamingEnumeration<SearchResult>) new LoggingRetryHandler(
                DEFAULT_EXCEPTION_CLASSES, this, getSchedule(), getMaxRetries(), getLogger()) {

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

    @SuppressWarnings("unchecked")
    @Override
    public NamingEnumeration<SearchResult> search(final String name,
            final Attributes matchingAttributes,
            final String[] attributesToReturn) throws NamingException {
        return (NamingEnumeration<SearchResult>) new LoggingRetryHandler(
                DEFAULT_EXCEPTION_CLASSES, this, getSchedule(), getMaxRetries(), getLogger()) {

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

    @SuppressWarnings("unchecked")
    @Override
    public NamingEnumeration<SearchResult> search(final Name name, final String filter,
            final SearchControls cons)
            throws NamingException {
        return (NamingEnumeration<SearchResult>) new LoggingRetryHandler(
                DEFAULT_EXCEPTION_CLASSES, this, getSchedule(), getMaxRetries(), getLogger()) {

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

    @SuppressWarnings("unchecked")
    @Override
    public NamingEnumeration<SearchResult> search(final String name, final String filter,
            final SearchControls cons)
            throws NamingException {
        return (NamingEnumeration<SearchResult>) new LoggingRetryHandler(
                DEFAULT_EXCEPTION_CLASSES, this, getSchedule(), getMaxRetries(), getLogger()) {

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

     */
    @SuppressWarnings("unchecked")
    @Override
    public NamingEnumeration<SearchResult> search(final Name name, final String filterExpr,
            final Object[] filterArgs, final SearchControls cons) throws NamingException {
        return (NamingEnumeration<SearchResult>) new LoggingRetryHandler(
                DEFAULT_EXCEPTION_CLASSES, this, getSchedule(), getMaxRetries(), getLogger()) {

            @Override
            public Object operation() throws NamingException {
                return ((DirContext) getDelegate()).search(name, filterExpr, filterArgs, cons);
View Full Code Here

     */
    @SuppressWarnings("unchecked")
    @Override
    public NamingEnumeration<SearchResult> search(final String name, final String filterExpr,
            final Object[] filterArgs, final SearchControls cons) throws NamingException {
        return (NamingEnumeration<SearchResult>) new LoggingRetryHandler(
                DEFAULT_EXCEPTION_CLASSES, this, getSchedule(), getMaxRetries(), getLogger()) {

            @Override
            public Object operation() throws NamingException {
                return ((DirContext) getDelegate()).search(name, filterExpr, filterArgs, cons);
View Full Code Here

TOP

Related Classes of org.apache.james.util.retry.naming.LoggingRetryHandler

Copyright © 2018 www.massapicom. 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.