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

public @Interface Cutoff

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

Event annotation, determines the cutoff above which an event should not be recorded, i.e. "20 ms". This settings is only supported for JVM events.
Since
9

Field Summary

Modifier and TypeField and Description
public static final String
public static final String
NAME

Settings name "cutoff" for configuring event cutoffs.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

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

Cutoff, for example "20 ms".

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Field Detail

INFINITYback to summary
public static final String INFINITY
NAMEback to summary
public static final String NAME

Settings name "cutoff" for configuring event cutoffs.

Method Detail

valueback to summary
public String value()

Cutoff, for example "20 ms".

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, "0 ns", "10 ms" and "1 s". If the events has an infinite timespan, the text "infinity" should be used.

Returns:String

the threshold, default "0 ns" not null