My Oracle Support Banner

What is the MaxIdleTime property in UCP (Doc ID 2817918.1)

Last updated on NOVEMBER 01, 2021

Applies to:

Universal Connection Pool - Version 21.1 and later
Information in this document applies to any platform.

Goal

While the MaxIdleTime property is not documented in the UCP Developer's guide, it is mentioned in the UCP Java doc

 

UCP Javadoc version 21.3:

oracle.ucp.jdbc
Interface PoolDataSource

void setMaxIdleTime(int idleTime) throws java.sql.SQLException

Sets the maximum idle time for available connections in the pool. This has the same effect as setting the inactive connection timeout.

The range of valid values is 0 to Integer.MAX_VALUE. Defaults to 0.

Parameters:
idleTime - Maximum idle time in seconds.
Throws:
java.sql.SQLException - in case of inability to set idle time.

int getMaxIdleTime()
Gets the maximum idle time.
Returns:
The maximum idle time.

Is there a difference between theMaxIdleTimeMaxIdleTime and the InactiveConnectionTimeout properties?

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.