Class NoopProfileHandler

java.lang.Object
io.ebeaninternal.server.transaction.NoopProfileHandler
All Implemented Interfaces:
SpiProfileHandler

public final class NoopProfileHandler extends Object implements SpiProfileHandler
A do nothing SpiProfileHandler.
  • Constructor Details

    • NoopProfileHandler

      public NoopProfileHandler()
  • Method Details

    • createProfileStream

      public @Nullable ProfileStream createProfileStream(@Nullable io.ebean.ProfileLocation location, @Nullable String label)
      Description copied from interface: SpiProfileHandler
      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.

      Specified by:
      createProfileStream in interface SpiProfileHandler
      Parameters:
      location - The profile location, or null for implicit transactions
      label - The transaction label