org.apache.james.mailbox.caching.MailboxByPathCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apache-james-mailbox-caching
Show all versions of apache-james-mailbox-caching
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.
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);
}