mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1183 - ENH: Add support for transaction profiling
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package io.ebeaninternal.server.transaction;
|
||||
|
||||
import io.ebeaninternal.api.SpiProfileHandler;
|
||||
|
||||
/**
|
||||
* A do nothing SpiProfileHandler.
|
||||
*/
|
||||
public class NoopProfileHandler implements SpiProfileHandler {
|
||||
|
||||
@Override
|
||||
public void collectTransactionProfile(TransactionProfile transactionProfile) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProfileStream createProfileStream(int profileId) {
|
||||
// always return null
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user