Top Description Fields Constructors Methods
one.jpro.platform.utils

public Class FreezeDetector

extends Object
Class Inheritance
Imports
javafx.animation.AnimationTimer, javafx.application.Platform, java.time.Duration, java.util.function.BiConsumer

This class allows you to track whether the JavaFX Application Thread is frozen for a given time. This can be useful for debugging purposes, detecting deadlocks or other optimize performance.
Author
Florian Kirmaier

Field Summary

Modifier and TypeField and Description
pack-priv Integer
pack-priv Thread
pack-priv Long

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

counterback to summary
pack-priv Integer counter
fxthreadback to summary
pack-priv Thread fxthread
lastUpdateback to summary
pack-priv Long lastUpdate

Constructor Detail

FreezeDetectorback to summary
public FreezeDetector()
FreezeDetectorback to summary
public FreezeDetector(Duration duration, BiConsumer<Thread, Duration> callback)
FreezeDetectorback to summary
public FreezeDetector(Duration duration)