Interface SpiProfileHandler

All Known Implementing Classes:
NoopProfileHandler

public interface SpiProfileHandler
Handle the logging or processing of transaction profiling information that is collected.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable ProfileStream
    createProfileStream(@Nullable io.ebean.ProfileLocation location, @Nullable String label)
    Create a profiling stream for this transaction, or return null to not profile this transaction.
  • Method Details

    • createProfileStream

      @Nullable ProfileStream createProfileStream(@Nullable io.ebean.ProfileLocation location, @Nullable String label)
      Create a profiling stream for this transaction, or return null to not profile this transaction.

      The location is null for implicit read-only transactions (queries without an explicit transaction). Handlers should return null when they choose not to profile a given transaction.

      Parameters:
      location - The profile location, or null for implicit transactions
      label - The transaction label