Package com.atlassian.jira.task
Class TimeBasedLogSink
java.lang.Object
com.atlassian.jira.task.StatefulTaskProgressSink
com.atlassian.jira.task.TimeBasedLogSink
- All Implemented Interfaces:
TaskProgressSink
This TaskProgressSink will output progress to the Logger if either the percentage progress changes or its been more than
n milliseconds since the last log entry.
- Since:
- v3.13
-
Field Summary
Fields inherited from interface com.atlassian.jira.task.TaskProgressSink
NULL_SINK -
Constructor Summary
ConstructorsConstructorDescriptionTimeBasedLogSink(org.apache.log4j.Logger log, String description, long maxTimeBetweenEvents, TaskProgressSink delegateSink) -
Method Summary
Modifier and TypeMethodDescriptionvoidmakeProgress(long taskProgress, String currentSubTask, String message) This method can be called to indicate that progress is being made by a task.Methods inherited from class com.atlassian.jira.task.StatefulTaskProgressSink
createPercentageSinksForRange, createStepSinkView, createStepSinkView, getMaxProgress, getMinProgress, getProgress, makeProgress, makeProgressIncrement, setProgress
-
Constructor Details
-
TimeBasedLogSink
public TimeBasedLogSink(org.apache.log4j.Logger log, String description, long maxTimeBetweenEvents, TaskProgressSink delegateSink)
-
-
Method Details
-
makeProgress
Description copied from class:StatefulTaskProgressSinkThis method can be called to indicate that progress is being made by a task.- Specified by:
makeProgressin interfaceTaskProgressSink- Overrides:
makeProgressin classStatefulTaskProgressSink- Parameters:
taskProgress- the current status of the task. This value will be clamped between the minimum and maximum progress specified when the object is constructed.currentSubTask- the name of the current sub task or null if there isn't onemessage- an optional message about the progress or null
-