public class

ClusterMessageCleaningService

extends AbstractService
java.lang.Object
   ↳ com.atlassian.jira.service.AbstractService
     ↳ com.atlassian.jira.service.services.cluster.ClusterMessageCleaningService

Class Overview

Service for flushing the cluster message table

Summary

Constants
String RETENTION_PERIOD
[Expand]
Inherited Constants
From class com.atlassian.jira.service.AbstractService
[Expand]
Inherited Fields
From class com.atlassian.jira.service.AbstractService
From interface com.atlassian.jira.service.JiraService
Public Constructors
ClusterMessageCleaningService(OfBizClusterMessageStore ofBizClusterMessageStore, JiraDurationUtils jiraDurationUtils, JiraAuthenticationContext jiraAuthenticationContext)
Public Methods
ObjectConfiguration getObjectConfiguration()
long getRetentionPeriod()
void init(PropertySet props)
Initialise the service.
void run()
This method must be implemented in a subclass, and performs the functionality that the service performs.
[Expand]
Inherited Methods
From class com.atlassian.jira.service.AbstractService
From class java.lang.Object
From interface com.atlassian.configurable.ObjectConfigurable
From interface com.atlassian.jira.service.JiraService
From interface java.lang.Runnable

Constants

public static final String RETENTION_PERIOD

Constant Value: "RETENTION_PERIOD"

Public Constructors

public ClusterMessageCleaningService (OfBizClusterMessageStore ofBizClusterMessageStore, JiraDurationUtils jiraDurationUtils, JiraAuthenticationContext jiraAuthenticationContext)

Public Methods

public ObjectConfiguration getObjectConfiguration ()

public long getRetentionPeriod ()

public void init (PropertySet props)

Initialise 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.

Parameters
props initialisation parameters

public void run ()

This 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.