io.ebeaninternal.server.transaction.ProfileStream Maven / Gradle / Ivy
package io.ebeaninternal.server.transaction;
/**
* Collects the events of a transaction being profiled.
*/
public interface ProfileStream {
/**
* Return the offset in micros from the start of the transaction.
*/
long offset();
/**
* Add a query event.
*/
void addQueryEvent(String event, long offset, String beanName, int beanCount, String queryId);
/**
* Add a persist event.
*/
void addPersistEvent(String event, long offset, String beanName, int beanCount);
/**
* Add the commit/rollback event.
*/
void addEvent(String event, long startOffset);
/**
* Transaction completed collect the profiling information.
*/
void end(TransactionManager manager);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy