Package com.google.gerrit.server.git
Class MultiProgressMonitor.VolatileTask
java.lang.Object
com.google.gerrit.server.git.MultiProgressMonitor.Task
com.google.gerrit.server.git.MultiProgressMonitor.VolatileTask
- All Implemented Interfaces:
- org.eclipse.jgit.lib.ProgressMonitor
- Enclosing class:
- MultiProgressMonitor
Handle for a sub-task whose total work can be updated while the task is in progress.
- 
Field SummaryFieldsFields inherited from interface org.eclipse.jgit.lib.ProgressMonitorUNKNOWN
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidMark the total on this sub-task as unmodifiable.intgetTotal()getTotalDisplay(int total) voidupdateTotal(int workUnits) Update the total work for this sub-task.Methods inherited from class com.google.gerrit.server.git.MultiProgressMonitor.TaskbeginTask, end, endTask, getCount, getName, isCancelled, showDuration, start, update
- 
Field Details- 
volatileTotal
- 
isTotalFinalized
 
- 
- 
Constructor Details- 
VolatileTask
 
- 
- 
Method Details- 
updateTotalpublic void updateTotal(int workUnits) Update the total work for this sub-task.Intended to be called from a worker thread. - Parameters:
- workUnits- number of work units to be added to existing total work.
 
- 
finalizeTotalpublic void finalizeTotal()Mark the total on this sub-task as unmodifiable.Intended to be called from a worker thread. 
- 
getTotalpublic int getTotal()- Overrides:
- getTotalin class- MultiProgressMonitor.Task
 
- 
getTotalDisplay- Overrides:
- getTotalDisplayin class- MultiProgressMonitor.Task
 
 
-