equal
deleted
inserted
replaced
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> |