com.atlassian.jira.task
Interface TaskProgressIndicator


public interface TaskProgressIndicator

Can be used to either pull or listen to the progress of a long running task.

Since:
v3.13

Method Summary
 void addListener(TaskProgressListener listener)
          Register the passed listener for notification of task progress.
 TaskProgressEvent getLastProgressEvent()
          Return the last actual event sent to the indicator.
 void removeListener(TaskProgressListener listener)
          De-register the passed listener
 

Method Detail

addListener

void addListener(TaskProgressListener listener)
Register the passed listener for notification of task progress.

Parameters:
listener - the listener to register.

removeListener

void removeListener(TaskProgressListener listener)
De-register the passed listener

Parameters:
listener - the listener to de-register.

getLastProgressEvent

TaskProgressEvent getLastProgressEvent()
Return the last actual event sent to the indicator.

Returns:
the last event sent to the indicator or null if there was no last event.


Copyright © 2002-2009 Atlassian. All Rights Reserved.