Interface Recorder

All Superinterfaces:
AutoCloseable, Closeable
All Known Subinterfaces:
ThreadRecorder
All Known Implementing Classes:
BinaryThreadRecorder, JsonlThreadRecorder, ThreadLocalRecorder

public interface Recorder extends Closeable
Specifies a recorder that is used to record flow data.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    enter(long methodId)
    Emit a method enter event with the given method ID.
    void
    Emit a method exit event.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • enter

      void enter(long methodId) throws IOException
      Emit a method enter event with the given method ID.
      Parameters:
      methodId - The ID of the method to trace
      Throws:
      IOException - If an I/O error occurs when emitting the event.
    • exit

      void exit() throws IOException
      Emit a method exit event.
      Throws:
      IOException - If an I/O error occurs when emitting the event.