Package com.e1c.langtool.internal.stat
Class AsyncRecomputer
java.lang.Object
com.e1c.langtool.internal.stat.AsyncRecomputer
Helper class to manage queue of the changed resources and start asynchronous computation of the statistics by them.
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncRecomputer(StatisticsService statisticService, ComputerEngine engine, AtomicBoolean autoStart) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToQueue(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath path) voidcleanQueue(org.eclipse.core.resources.IProject project) voidremoveFromQueue(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath path) voidvoidSchedule compute full statistic.voidstartRemoveStatistic(org.eclipse.core.resources.IProject project)
-
Constructor Details
-
AsyncRecomputer
public AsyncRecomputer(StatisticsService statisticService, ComputerEngine engine, AtomicBoolean autoStart)
-
-
Method Details
-
scheduleComputeFullStat
public void scheduleComputeFullStat()Schedule compute full statistic. -
scheduleCompute
public void scheduleCompute() -
startRemoveStatistic
public void startRemoveStatistic(org.eclipse.core.resources.IProject project) -
cleanQueue
public void cleanQueue(org.eclipse.core.resources.IProject project) -
addToQueue
public void addToQueue(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath path) -
removeFromQueue
public void removeFromQueue(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath path)
-