public interface EventRecorder
EventBus into a recording facility such as
JFR. Transforming an Event into a recordable event is subject to the actual EventRecorder implementation.
You can record data by launching the application with recording enabled:
java -XX:StartFlightRecording:filename=recording.jfr,duration=10s -jar app.jar.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
EventRecorder.RecordableEvent
Interface defining a recordable event that is recorded on calling
EventRecorder.RecordableEvent.record(). |
| Modifier and Type | Method and Description |
|---|---|
static EventRecorder |
getInstance()
Obtain an instance of the
EventRecorder. |
void |
record(Event event)
Record an event.
|
EventRecorder.RecordableEvent |
start(Event event)
Start recording an event.
|
static EventRecorder getInstance()
EventRecorder.EventRecorder.void record(Event event)
event - the event to record, must not be null.EventRecorder.RecordableEvent start(Event event)
EventRecorder.RecordableEvent that can be recorded by calling
EventRecorder.RecordableEvent.record(). These events can be used to measure time between start and record.event - the event to record, must not be null.Copyright © 2025 lettuce.io. All rights reserved.