public final class MailInitialization
extends java.lang.Object
implements com.openexchange.server.Initialization, com.openexchange.cache.registry.CacheAvailabilityListener
MailInitialization - Initializes whole mail implementation and therefore provides a central point for starting/stopping mail
implementation.| Modifier and Type | Method and Description |
|---|---|
static MailInitialization |
getInstance() |
void |
handleAbsence()
Handles the (possibly temporary) absence of cache service
|
void |
handleAvailability()
Handles the (re-)availability of cache service
|
boolean |
isInitialized() |
void |
shutDownCaches()
Handles the (possibly temporary) unavailability of caching service
|
void |
start() |
void |
startUpCaches()
Handles the re-availability of caching service
|
void |
stop() |
public static MailInitialization getInstance()
MailInitializationpublic void start()
throws com.openexchange.exception.OXException
start in interface com.openexchange.server.Initializationcom.openexchange.exception.OXExceptionpublic void stop()
stop in interface com.openexchange.server.Initializationpublic void shutDownCaches()
throws com.openexchange.exception.OXException
AbstractOXException - If mail caches shut-down failscom.openexchange.exception.OXExceptionpublic void startUpCaches()
throws com.openexchange.exception.OXException
AbstractOXException - If mail caches start-up failscom.openexchange.exception.OXExceptionpublic void handleAbsence()
throws com.openexchange.exception.OXException
com.openexchange.cache.registry.CacheAvailabilityListenerhandleAbsence in interface com.openexchange.cache.registry.CacheAvailabilityListenercom.openexchange.exception.OXException - If an error occurspublic void handleAvailability()
throws com.openexchange.exception.OXException
com.openexchange.cache.registry.CacheAvailabilityListenerhandleAvailability in interface com.openexchange.cache.registry.CacheAvailabilityListenercom.openexchange.exception.OXException - If an error occurspublic boolean isInitialized()