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

pack-priv final Class TaskRepository

extends Object
Class Inheritance
Imports
java.util.LinkedHashMap, .List, .Map, jdk.jfr.internal.LogLevel, .LogTag, .Logger, .PlatformEventType

Class that holds periodic tasks.

This class is thread safe.

Field Summary

Modifier and TypeField and Description
private List<EventTask>
private final Map<LookupKey, EventTask>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public synchronized void
add(EventTask task)

public synchronized List<EventTask>
private void
public synchronized boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheback to summary
private List<EventTask> cache
lookupback to summary
private final Map<LookupKey, EventTask> lookup

Constructor Detail

TaskRepositoryback to summary
pack-priv TaskRepository()

Method Detail

addback to summary
public synchronized void add(EventTask task)
getTasksback to summary
public synchronized List<EventTask> getTasks()
logTaskback to summary
private void logTask(String action, PlatformEventType type)
removeTaskback to summary
public synchronized boolean removeTask(Runnable r)