Skip to content

Commit

Permalink
[JFR] Deprecate public JFR Streaming API
Browse files Browse the repository at this point in the history
Summary: For maintainability and compatibility, deprecate JFR
Streaming public API, and will revert related backports in the next GA.

Test Plan: jfr tests

Reviewed-by: kelthuzadx, zhengxiaolinX, yuleil

Issue: dragonwell-project/dragonwell8#275
  • Loading branch information
D-D-H authored and joeyleeeeeee97 committed Nov 22, 2021
1 parent 6d94fd0 commit a83044b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/share/classes/jdk/jfr/consumer/EventStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
*
* @since 14
*/
@Deprecated
public interface EventStream extends AutoCloseable {
/**
* Creates a stream from the repository of the current Java Virtual Machine
Expand Down
1 change: 1 addition & 0 deletions src/share/classes/jdk/jfr/consumer/RecordingStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
*
* @since 14
*/
@Deprecated
public final class RecordingStream implements AutoCloseable, EventStream {

private final Recording recording;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
* Purpose of this class is to simplify the implementation of
* an event stream.
*/
@Deprecated
abstract class AbstractEventStream implements EventStream {
private final static AtomicLong counter = new AtomicLong(0);

Expand Down

0 comments on commit a83044b

Please sign in to comment.