--- a/src/jdk.jfr/share/classes/jdk/jfr/events/ActiveRecordingEvent.java Wed Oct 30 16:14:56 2019 +0100
+++ b/src/jdk.jfr/share/classes/jdk/jfr/events/ActiveRecordingEvent.java Wed Oct 30 19:43:52 2019 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -40,6 +40,13 @@
@StackTrace(false)
public final class ActiveRecordingEvent extends AbstractJDKEvent {
+ public static final ThreadLocal<ActiveRecordingEvent> EVENT = new ThreadLocal<ActiveRecordingEvent>() {
+ @Override
+ protected ActiveRecordingEvent initialValue() {
+ return new ActiveRecordingEvent();
+ }
+ };
+
@Label("Id")
public long id;
@@ -53,6 +60,10 @@
@Timespan(Timespan.MILLISECONDS)
public long maxAge;
+ @Label("Flush Interval")
+ @Timespan(Timespan.MILLISECONDS)
+ public long flushInterval;
+
@Label("Max Size")
@DataAmount
public long maxSize;