Package org.jdbi.v3.core.statement
Interface TimingCollector
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Deprecated, for removal: This API element is subject to removal in a future version.
This class collects timing information for statement execution.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TimingCollectorDeprecated, for removal: This API element is subject to removal in a future version.UseSqlLogger.NOP_SQL_LOGGERinstead. -
Method Summary
Modifier and TypeMethodDescriptionvoidcollect(long elapsedNs, StatementContext ctx) Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
NOP_TIMING_COLLECTOR
Deprecated, for removal: This API element is subject to removal in a future version.UseSqlLogger.NOP_SQL_LOGGERinstead.GNDN.
-
-
Method Details
-
collect
Deprecated, for removal: This API element is subject to removal in a future version.Called after a statement completes with how long it took to execute.- Parameters:
elapsedNs- the elapsed time in nanoseconds.ctx- the context of the just completed statement
-
SqlLoggerinstead.