java.lang.Object
io.ebeaninternal.server.transaction.DefaultProfileStream
- All Implemented Interfaces:
ProfileStream
Default transaction profiling event collection.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the commit/rollback event.voidaddPersistEvent(String event, long offset, String beanName, int beanCount) Add a persist event.voidaddQueryEvent(String event, long offset, String beanName, int beanCount, String queryId) Add a query execution event.voidend(TransactionManager manager) End the transaction profiling.longoffset()Return the time offset from the beginning of the transaction.
-
Method Details
-
offset
public long offset()Return the time offset from the beginning of the transaction.- Specified by:
offsetin interfaceProfileStream
-
addQueryEvent
public void addQueryEvent(String event, long offset, String beanName, int beanCount, String queryId) Add a query execution event.- Specified by:
addQueryEventin interfaceProfileStream
-
addPersistEvent
Add a persist event.- Specified by:
addPersistEventin interfaceProfileStream
-
addEvent
Add the commit/rollback event.- Specified by:
addEventin interfaceProfileStream
-
end
End the transaction profiling.- Specified by:
endin interfaceProfileStream
-