src/jdk.jfr/share/classes/jdk/jfr/consumer/EventStream.java
branchJEP-349-branch
changeset 58213 354c7790c548
parent 58212 412d8e77f931
child 58357 fe78b5a87287
equal deleted inserted replaced
58212:412d8e77f931 58213:354c7790c548
    49  * <p>
    49  * <p>
    50  * To receive a notification when an event arrives, register an action using the
    50  * To receive a notification when an event arrives, register an action using the
    51  * {@link #onEvent(Consumer)} method. To filter the stream for an event with a
    51  * {@link #onEvent(Consumer)} method. To filter the stream for an event with a
    52  * specific name, use {@link #onEvent(String, Consumer)} method.
    52  * specific name, use {@link #onEvent(String, Consumer)} method.
    53  * <p>
    53  * <p>
    54  * By default, the same {@code RecordedEvent} object can be used for
    54  * By default, the same {@code RecordedEvent} object can be used to
    55  * representing two or more distinct events. That object can be delivered
    55  * represent two or more distinct events. That object can be delivered
    56  * multiple times to the same action as well as to other actions. To use an
    56  * multiple times to the same action as well as to other actions. To use an
    57  * event object after the action is completed, the
    57  * event object after the action is completed, the
    58  * {@link #setReuse(boolean)} method should be set to {@code false} so a
    58  * {@link #setReuse(boolean)} method should be set to {@code false} so a
    59  * new object is allocated for each event.
    59  * new object is allocated for each event.
    60  * <p>
    60  * <p>