All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebean.ProfileLocation Maven / Gradle / Ivy

There is a newer version: 15.8.1
Show newest version
package io.ebean;

/**
 * A location for profiling transactions and queries.
 * 

* Typically represents a class method in the form of class file and line of code that started * the transaction or invoked the query. *

*/ public interface ProfileLocation { /** * Create and return a new ProfileLocation. */ static ProfileLocation create() { return XServiceProvider.profileLocationFactory().create(); } /** * Create and return a new ProfileLocation with a given lineNumber and label. */ static ProfileLocation create(int lineNumber, String label) { return XServiceProvider.profileLocationFactory().create(lineNumber, label); } /** * Create and return a new ProfileLocation with a given location. */ static ProfileLocation createAt(String location) { return XServiceProvider.profileLocationFactory().createAt(location); } /** * Obtain the location description. */ String obtain(); /** * Return a short version of the location description. */ String shortDescription(); /** * Return the short label. */ String label(); /** * Add execution time. */ void add(long executionTime); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy