Package ca.uhn.fhir.jpa.util
Class BaseCaptureQueriesListener
java.lang.Object
ca.uhn.fhir.jpa.util.BaseCaptureQueriesListener
- All Implemented Interfaces:
net.ttddyy.dsproxy.support.ProxyDataSourceBuilder.SingleMethodExecution
,net.ttddyy.dsproxy.support.ProxyDataSourceBuilder.SingleQueryExecution
- Direct Known Subclasses:
CircularQueueCaptureQueriesListener
,CurrentThreadCaptureQueriesListener
public abstract class BaseCaptureQueriesListener
extends Object
implements net.ttddyy.dsproxy.support.ProxyDataSourceBuilder.SingleQueryExecution, net.ttddyy.dsproxy.support.ProxyDataSourceBuilder.SingleMethodExecution
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
void
execute
(net.ttddyy.dsproxy.ExecutionInfo theExecutionInfo, List<net.ttddyy.dsproxy.QueryInfo> theQueryInfoList) void
execute
(net.ttddyy.dsproxy.listener.MethodExecutionContext executionContext) boolean
This has an impact on performance! Use with caution.protected abstract AtomicInteger
protected abstract AtomicInteger
protected abstract AtomicInteger
void
setCaptureQueryStackTrace
(boolean theCaptureQueryStackTrace) This has an impact on performance! Use with caution.
-
Constructor Details
-
BaseCaptureQueriesListener
public BaseCaptureQueriesListener()
-
-
Method Details
-
isCaptureQueryStackTrace
This has an impact on performance! Use with caution. -
setCaptureQueryStackTrace
This has an impact on performance! Use with caution. -
execute
public void execute(net.ttddyy.dsproxy.ExecutionInfo theExecutionInfo, List<net.ttddyy.dsproxy.QueryInfo> theQueryInfoList) - Specified by:
execute
in interfacenet.ttddyy.dsproxy.support.ProxyDataSourceBuilder.SingleQueryExecution
-
provideQueryList
-
provideCommitCounter
-
provideGetConnectionCounter
-
provideRollbackCounter
-
execute
- Specified by:
execute
in interfacenet.ttddyy.dsproxy.support.ProxyDataSourceBuilder.SingleMethodExecution
-
countGetConnections
- Returns:
- Returns the number of times the connection pool was asked for a new connection
-
countCommits
- Returns:
- Returns the number of DB commits which have happened against connections from the pool
-
countRollbacks
- Returns:
- Returns the number of DB rollbacks which have happened against connections from the pool
-