Package io.ebeaninternal.api
Interface SpiProfileHandler
-
- All Known Implementing Classes:
DefaultProfileHandler
,NoopProfileHandler
public interface SpiProfileHandler
Handle the logging or processing of transaction profiling information that is collected.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
collectTransactionProfile(TransactionProfile transactionProfile)
Process the collected transaction profiling information.ProfileStream
createProfileStream(ProfileLocation location)
Create a profiling stream if we are profiling this transaction.
-
-
-
Method Detail
-
collectTransactionProfile
void collectTransactionProfile(TransactionProfile transactionProfile)
Process the collected transaction profiling information.Note that profileId and totalMicros are part of the profilingData but passed separately as the handler may filter what it processed based on this information (ignore short transactions, only process specific profileId transactions etc).
- Parameters:
transactionProfile
- The transaction profile that has just been collected
-
createProfileStream
ProfileStream createProfileStream(ProfileLocation location)
Create a profiling stream if we are profiling this transaction. Return null if we are not profiling this transaction.- Parameters:
location
- The profile location
-
-