All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.james.mailbox.caching.MailboxByPathCache Maven / Gradle / Ivy

Go to download

JAMES-2703 This maven module is deprecated and will be removed straight after upcoming James 3.4.0 release, unless it finds a maintainer. This module lacks tests and is not used in James products hence the choice to deprecate it.

There is a newer version: 3.4.0
Show newest version
package org.apache.james.mailbox.caching;

import org.apache.james.mailbox.exception.MailboxException;
import org.apache.james.mailbox.exception.MailboxNotFoundException;
import org.apache.james.mailbox.model.MailboxPath;
import org.apache.james.mailbox.store.mail.MailboxMapper;
import org.apache.james.mailbox.store.mail.model.Mailbox;

/**
 * Caches the MailboxPath -> Mailbox mapping
 * 
 */
public interface MailboxByPathCache {

    Mailbox findMailboxByPath(MailboxPath mailboxName,
                                  MailboxMapper underlying) throws MailboxNotFoundException,
            MailboxException;

    void invalidate(Mailbox mailbox);

    void invalidate(MailboxPath mailboxPath);

    // for the purpose of cascading the invalidations; does it make sense?
    //public void connectTo(MailboxMetadataCache mailboxMetadataCache);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy