Class MailQueueService
java.lang.Object
com.atlassian.jira.service.AbstractService
com.atlassian.jira.service.services.mail.MailQueueService
- All Implemented Interfaces:
ObjectConfigurable,JiraService,LocalService,Runnable
-
Field Summary
Fields inherited from class com.atlassian.jira.service.AbstractService
log, name, SERVICE_EVENTFields inherited from interface com.atlassian.jira.service.JiraService
NAME_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()This method is called when the service is unloaded (usually when the web application or server is being shut down).Retrieves an object configuration object with properties that can be setvoidinit(com.opensymphony.module.propertyset.PropertySet props) Initialise the service.booleanBy default, returns false.booleanisUnique()By default, services are not unique.voidrun()This method must be implemented in a subclass, and performs the functionality that the service performs.Methods inherited from class com.atlassian.jira.service.AbstractService
getDefaultProperty, getDescription, getKey, getLongProperty, getName, getObjectConfiguration, getProperties, getProperty, getTextProperty, hasProperty, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.service.JiraService
init
-
Constructor Details
-
MailQueueService
public MailQueueService()
-
-
Method Details
-
run
public void run()Description copied from class:AbstractServiceThis method must be implemented in a subclass, and performs the functionality that the service performs. This method is called after the duration specified through the administration web interface.- Specified by:
runin interfaceJiraService- Specified by:
runin interfaceRunnable- Specified by:
runin classAbstractService- See Also:
-
init
public void init(com.opensymphony.module.propertyset.PropertySet props) throws ObjectConfigurationException Description copied from interface:JiraServiceInitialise the service. This method is guaranteed to be called before the first call to run().As the parameters are gained from the user's interaction with the website, it is not guaranteed to be called with the correct, or indeed with any parameters.
init() may be called multiple times during the services lifetime.
- Specified by:
initin interfaceJiraService- Overrides:
initin classAbstractService- Parameters:
props- initialisation parameters- Throws:
ObjectConfigurationException- in case of an error with initialisation parameters- See Also:
-
isUnique
public boolean isUnique()Description copied from class:AbstractServiceBy default, services are not unique.- Specified by:
isUniquein interfaceJiraService- Overrides:
isUniquein classAbstractService- Returns:
- false.
-
isInternal
public boolean isInternal()Description copied from class:AbstractServiceBy default, returns false.- Specified by:
isInternalin interfaceJiraService- Overrides:
isInternalin classAbstractService- Returns:
- false
-
destroy
public void destroy()Description copied from class:AbstractServiceThis method is called when the service is unloaded (usually when the web application or server is being shut down).You may wish to remove any connections that you have established, eg. database connections.
- Specified by:
destroyin interfaceJiraService- Overrides:
destroyin classAbstractService
-
getObjectConfiguration
Description copied from interface:ObjectConfigurableRetrieves an object configuration object with properties that can be set- Specified by:
getObjectConfigurationin interfaceObjectConfigurable- Returns:
- ObjectConfiguration object
- Throws:
ObjectConfigurationException
-