Top Description Fields Methods
jdk.jfr

public @Interface Threshold

extends Annotation
Annotations
@MetadataDefinition
@Target:TYPE
@Inherited
@Retention:RUNTIME
Imports
java.lang.annotation.ElementType, .Inherited, .Retention, .RetentionPolicy, .Target

Event annotation, specifies the default duration below which an event is not recorded (for example, "20 ms").
Since
9

Field Summary

Modifier and TypeField and Description
public static final String
NAME

Setting name "threshold" for configuring event thresholds.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the threshold, default "0 ns", not null
value
()

The threshold (for example, "20 ms").

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Field Detail

NAMEback to summary
public static final String NAME

Setting name "threshold" for configuring event thresholds.

Method Detail

valueback to summary
public String value()

The threshold (for example, "20 ms").

A String representation of a positive Long value followed by an empty space and one of the following units:

"ns" (nanoseconds)
"us" (microseconds)
"ms" (milliseconds)
"s" (seconds)
"m" (minutes)
"h" (hours)
"d" (days)

Example values are "0 ns", "10 ms", and "1 s".

Returns:String

the threshold, default "0 ns", not null