类的用途
jdk.jfr.consumer.RecordedEvent
使用 RecordedEvent 的包
包
描述
此包包含用于使用 Flight Recorder 数据的类。
此包包含通过 Java 管理扩展 (JMX) 控制和监视 Flight Recorder 的类。
-
RecordedEvent 在 jdk.jfr.consumer 中的用法
jdk.jfr.consumer 中返回 RecordedEvent 的方法返回类型中包含 RecordedEvent 类型参数的 jdk.jfr.consumer 中的方法jdk.jfr.consumer 中的方法参数,类型参数为 RecordedEvent修饰符和类型方法描述voidEventStream.onEvent(String eventName, Consumer<RecordedEvent> action) 注册一个操作以对所有匹配名称的事件执行。voidEventStream.onEvent(Consumer<RecordedEvent> action) 注册一个操作以对流中的所有事件执行。voidRecordingStream.onEvent(String eventName, Consumer<RecordedEvent> action) voidRecordingStream.onEvent(Consumer<RecordedEvent> action) voidRecordingFile.write(Path destination, Predicate<RecordedEvent> filter) 过滤掉事件并将它们写入新文件。 -
RecordedEvent 在 jdk.management.jfr 中的用法
jdk.management.jfr 中的方法参数,类型参数为 RecordedEvent修饰符和类型方法描述voidRemoteRecordingStream.onEvent(String eventName, Consumer<RecordedEvent> action) voidRemoteRecordingStream.onEvent(Consumer<RecordedEvent> action)