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

pack-priv final Class Batch

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List

Class that holds periodic tasks that run at the same time.

For example, events with period 1s, 3s and 7s can run when the 1s event run, not every time, but some of the time. An event with period 1.5s would not belong to the same batch since it would need to run between the 1s interval.

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

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
Batch(long period)

Method Summary

Modifier and TypeMethod and Description
public void
public void
public long
public long
public List<PeriodicTask>
public boolean
public void
setDelta(long delta)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

deltaback to summary
private long delta
periodback to summary
private final long period
tasksback to summary
private final List<PeriodicTask> tasks

Constructor Detail

Batchback to summary
public Batch(long period)

Method Detail

addback to summary
public void add(PeriodicTask task)
clearback to summary
public void clear()
getDeltaback to summary
public long getDelta()
getPeriodback to summary
public long getPeriod()
getTasksback to summary
public List<PeriodicTask> getTasks()
isEmptyback to summary
public boolean isEmpty()
setDeltaback to summary
public void setDelta(long delta)