com.atlassian.greenhopper.service.issue.callback
Class IssueCountAndLastUpdatedCallback
java.lang.Object
com.atlassian.greenhopper.service.issue.callback.AbstractCompoundDataCallback
com.atlassian.greenhopper.service.issue.callback.IssueCountAndLastUpdatedCallback
- All Implemented Interfaces:
- IssueDataCallback
public class IssueCountAndLastUpdatedCallback
- extends AbstractCompoundDataCallback
Collects the number of issues as well as the last updated date across all issues.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IssueCountAndLastUpdatedCallback
public IssueCountAndLastUpdatedCallback()
getFields
public java.util.Set<java.lang.String> getFields()
- Description copied from interface:
IssueDataCallback
- see DocumentConstants for possible values. These are the issue fields that we want to read from the Lucene index.
fieldData
public void fieldData(java.lang.Long issueId,
java.lang.String issueKey,
IssueFieldValueProvider data)
- Description copied from class:
AbstractCompoundDataCallback
- This callback is being called for every issue that matches the query. For memory efficiency, try to avoid buffering all results in memory but
rather stream them to the target object, like a REST template.
This is only called once per issue.
- Specified by:
fieldData
in class AbstractCompoundDataCallback
data
- : The data from the document that matches our selected fields.
getIssueCount
public int getIssueCount()
getLastUpdatedDate
public org.joda.time.DateTime getLastUpdatedDate()
Copyright © 2007-2014 Atlassian. All Rights Reserved.