com.atlassian.bamboo.jira.jiraissues
Class JiraRemoteIssueManagerCache

java.lang.Object
  extended by com.atlassian.bamboo.jira.jiraissues.JiraRemoteIssueManagerCache
All Implemented Interfaces:
JiraRemoteIssueManager

public class JiraRemoteIssueManagerCache
extends java.lang.Object
implements JiraRemoteIssueManager

A caching implementation of JiraRemoteIssueManager, which delegates to another instance of JiraRemoteIssueManager, in the case of a cache miss.


Constructor Summary
JiraRemoteIssueManagerCache(JiraRemoteIssueManager delegate, long cachePeriodMillis)
           
 
Method Summary
 void clearCache()
          Clears any cached data, if applicable.
 JiraIssueDetails getJiraIssueDetails(java.lang.String issueKey)
          This gets an issue from JIRA via SOAP RPC.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraRemoteIssueManagerCache

public JiraRemoteIssueManagerCache(JiraRemoteIssueManager delegate,
                                   long cachePeriodMillis)
Parameters:
delegate - The JiraRemoteIssueManager to which this JiraIssueManagerCache delegates, in the case of a cache miss.
cachePeriodMillis - The maximum duration for which a JiraIssueDetails should be kept in the cache.
Method Detail

getJiraIssueDetails

@NotNull
public JiraIssueDetails getJiraIssueDetails(@NotNull
                                                    java.lang.String issueKey)
Description copied from interface: JiraRemoteIssueManager
This gets an issue from JIRA via SOAP RPC.

Specified by:
getJiraIssueDetails in interface JiraRemoteIssueManager
Returns:
JiraIssueDetails object representing the JIRA issue.

clearCache

public void clearCache()
Description copied from interface: JiraRemoteIssueManager

Clears any cached data, if applicable.

Specified by:
clearCache in interface JiraRemoteIssueManager


Copyright © 2010 Atlassian. All Rights Reserved.