APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.jfr.internal.periodic

pack-priv final Class BatchManager

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Comparator, .List, jdk.jfr.internal.LogLevel, .LogTag, .Logger

Class that groups periodic tasks into batches.

This class should only be accessed from the periodic task thread.

Field Summary

Modifier and TypeField and Description
private final List<Batch>
private long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private List<PeriodicTask>
private Batch
findBatch(long period, Batch oldBatch)

public List<Batch>
public long
private void
private void
private void
public void
refresh(long iteration, List<PeriodicTask> tasks)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

batchesback to summary
private final List<Batch> batches
iterationback to summary
private long iteration

Constructor Detail

BatchManagerback to summary
pack-priv BatchManager()

Method Detail

activeSortedTasksback to summary
private List<PeriodicTask> activeSortedTasks(List<PeriodicTask> unsorted)
findBatchback to summary
private Batch findBatch(long period, Batch oldBatch)
getBatchesback to summary
public List<Batch> getBatches()
getIterationback to summary
public long getIteration()
groupTasksIntoBatchesback to summary
private void groupTasksIntoBatches(List<PeriodicTask> tasks)
logBatchesback to summary
private void logBatches()
logTraceback to summary
private void logTrace(String text)
refreshback to summary
public void refresh(long iteration, List<PeriodicTask> tasks)