AbandonedConfig

Configuration settings for abandoned object removal.

Members

Functions

getLogAbandoned
bool getLogAbandoned()

Flag to log stack traces for application code which abandoned an object.

getRemoveAbandonedOnBorrow
bool getRemoveAbandonedOnBorrow()

<p>Flag to remove abandoned objects if they exceed the removeAbandonedTimeout when borrowObject is invoked.</p>

getRemoveAbandonedOnMaintenance
bool getRemoveAbandonedOnMaintenance()

<p>Flag to remove abandoned objects if they exceed the removeAbandonedTimeout when pool maintenance (the "evictor") runs.</p>

getRemoveAbandonedTimeout
int getRemoveAbandonedTimeout()

<p>Timeout in seconds before an abandoned object can be removed.</p>

getRequireFullStackTrace
bool getRequireFullStackTrace()

Indicates if full stack traces are required when {@link #getLogAbandoned() logAbandoned} is true. Defaults to true. Logging of abandoned objects requiring a full stack trace will generate an entire stack trace to generate for every object created. If this is disabled, a faster but less informative stack walking mechanism may be used if available.

getUseUsageTracking
bool getUseUsageTracking()

If the pool implements {@link UsageTracking}, should the pool record a stack trace every time a method is called on a pooled object and retain the most recent stack trace to aid debugging of abandoned objects?

setLogAbandoned
void setLogAbandoned(bool logAbandoned)

Sets the flag to log stack traces for application code which abandoned an object.

setRemoveAbandonedOnBorrow
void setRemoveAbandonedOnBorrow(bool removeAbandonedOnBorrow)

<p>Flag to remove abandoned objects if they exceed the removeAbandonedTimeout when borrowObject is invoked.</p>

setRemoveAbandonedOnMaintenance
void setRemoveAbandonedOnMaintenance(bool removeAbandonedOnMaintenance)

<p>Flag to remove abandoned objects if they exceed the removeAbandonedTimeout when pool maintenance runs.</p>

setRemoveAbandonedTimeout
void setRemoveAbandonedTimeout(int removeAbandonedTimeout)

<p>Sets the timeout in seconds before an abandoned object can be removed</p>

setRequireFullStackTrace
void setRequireFullStackTrace(bool requireFullStackTrace)

Sets the flag to require full stack traces for logging abandoned connections when enabled.

setUseUsageTracking
void setUseUsageTracking(bool useUsageTracking)

If the pool implements {@link UsageTracking}, configure whether the pool should record a stack trace every time a method is called on a pooled object and retain the most recent stack trace to aid debugging of abandoned objects.

toString
string toString()

Meta