org.apache.tomcat.jdbc.pool.PoolConfiguration#setRemoveAbandonedTimeout(int)
that is fairly low, and you want to reset the abandoned time each time any operation on the connection is performed
This is useful for batch processing programs that use connections for extensive amount of times.
| Modifier and Type | Field and Description |
|---|---|
| private ObjectName | |
| private PooledConnection |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | closeInvoked()
Implements abstract org. Method invoked when the operation |
| public Object | invoke(Object
the proxy instance that the method was invoked on proxy, Method the method, Object[] Method instance corresponding to
the interface method invoked on the proxy instance. The declaring
class of the Method object will be the interface that
the method was declared in, which may be a superinterface of the
proxy interface that the proxy class inherits the method through.an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or args)null if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.Overrides org. Implements java. Gets invoked each time an operation on |
| protected void | prepareCall(String
- the string used to prepare the statement with query, long - the time it took to invoke prepare time)Implements abstract org. Invoked when prepareCall has been called and completed. |
| protected void | prepareStatement(String
- the string used to prepare the statement with sql, long - the time it took to invoke prepare time)Implements abstract org. Invoked when prepareStatement has been called and completed. |
| protected String | reportQuery(String
the query that was executed and failed query, Object[] the arguments to the execution args, String the name of the method used to execute name, long AbstractCreateStatementInterceptor#isExecute(Method, boolean)the time the query execution started start, long the time the execution took delta)Overrides org. Invoked when a query execution, a call to execute/executeQuery or executeBatch succeeded and was within the timing threshold |
| protected String | reportSlowQuery(String
the query that was executed and failed query, Object[] the arguments to the execution args, String the name of the method used to execute name, long AbstractCreateStatementInterceptor#isExecute(Method, boolean)the time the query execution started start, long the time the execution took delta)Overrides org. Invoked when a query execution, a call to execute/executeQuery or executeBatch succeeded and was exceeded the timing threshold |
| public void | reset(ConnectionPool
- the connection pool owning the connection parent, PooledConnection - the pooled connection con)Overrides org. no-op for this interceptor. |
| public boolean |
| oname | back to summary |
|---|---|
| private ObjectName oname | |
| pcon | back to summary |
|---|---|
| private PooledConnection pcon | |
| ResetAbandonedTimer | back to summary |
|---|---|
| public ResetAbandonedTimer() | |
| closeInvoked | back to summary |
|---|---|
| public void closeInvoked() Implements abstract org. Doc from org. Method invoked when the operation
| |
| invoke | back to summary |
|---|---|
| public Object invoke(Object proxy, Method method, Object[] args) throws Throwable Overrides org. Implements java. Doc from org. Gets invoked each time an operation on
| |
| prepareCall | back to summary |
|---|---|
| protected void prepareCall(String query, long time) Implements abstract org. Doc from org. Invoked when prepareCall has been called and completed. | |
| prepareStatement | back to summary |
|---|---|
| protected void prepareStatement(String sql, long time) Implements abstract org. Doc from org. Invoked when prepareStatement has been called and completed. | |
| reportQuery | back to summary |
|---|---|
| protected String reportQuery(String query, Object[] args, String name, long start, long delta) Overrides org. Doc from org. Invoked when a query execution, a call to execute/executeQuery or executeBatch succeeded and was within the timing threshold
| |
| reportSlowQuery | back to summary |
|---|---|
| protected String reportSlowQuery(String query, Object[] args, String name, long start, long delta) Overrides org. Doc from org. Invoked when a query execution, a call to execute/executeQuery or executeBatch succeeded and was exceeded the timing threshold
| |
| reset | back to summary |
|---|---|
| public void reset(ConnectionPool parent, PooledConnection con) Overrides org. Doc from org. no-op for this interceptor. no state is stored.
| |
| resetTimer | back to summary |
|---|---|
| public boolean resetTimer() Implements org.
| |