Lines 86-92
Link Here
|
86 |
|
86 |
|
87 |
/** |
87 |
/** |
88 |
* The connection properties that will be sent to the JDBC driver when establishing new connections. |
88 |
* The connection properties that will be sent to the JDBC driver when establishing new connections. |
89 |
* Format of the string is [propertyName=property;] <br/> |
89 |
* Format of the string is [propertyName=property;] <br> |
90 |
* NOTE - The "user" and "password" properties will be passed explicitly, so they do not need to be included here. |
90 |
* NOTE - The "user" and "password" properties will be passed explicitly, so they do not need to be included here. |
91 |
* The default value is null. |
91 |
* The default value is null. |
92 |
*/ |
92 |
*/ |
Lines 665-676
Link Here
|
665 |
/** |
665 |
/** |
666 |
* Returns true if the pool sweeper is enabled for the connection pool. |
666 |
* Returns true if the pool sweeper is enabled for the connection pool. |
667 |
* The pool sweeper is enabled if any settings that require async intervention in the pool are turned on |
667 |
* The pool sweeper is enabled if any settings that require async intervention in the pool are turned on |
668 |
* <source> |
668 |
* <code> |
669 |
boolean result = getTimeBetweenEvictionRunsMillis()>0; |
669 |
boolean result = getTimeBetweenEvictionRunsMillis()>0; |
670 |
result = result && (isRemoveAbandoned() && getRemoveAbandonedTimeout()>0); |
670 |
result = result && (isRemoveAbandoned() && getRemoveAbandonedTimeout()>0); |
671 |
result = result || (isTestWhileIdle() && getValidationQuery()!=null); |
671 |
result = result || (isTestWhileIdle() && getValidationQuery()!=null); |
672 |
return result; |
672 |
return result; |
673 |
</source> |
673 |
</code> |
674 |
* |
674 |
* |
675 |
* @return true if a background thread is or will be enabled for this pool |
675 |
* @return true if a background thread is or will be enabled for this pool |
676 |
*/ |
676 |
*/ |
Lines 698-704
Link Here
|
698 |
/** |
698 |
/** |
699 |
* Time in milliseconds to keep this connection alive even when used. |
699 |
* Time in milliseconds to keep this connection alive even when used. |
700 |
* When a connection is returned to the pool, the pool will check to see if the |
700 |
* When a connection is returned to the pool, the pool will check to see if the |
701 |
* ((now - time-when-connected) > maxAge) has been reached, and if so, |
701 |
* ((now - time-when-connected) > maxAge) has been reached, and if so, |
702 |
* it closes the connection rather than returning it to the pool. |
702 |
* it closes the connection rather than returning it to the pool. |
703 |
* The default value is 0, which implies that connections will be left open and no |
703 |
* The default value is 0, which implies that connections will be left open and no |
704 |
* age check will be done upon returning the connection to the pool. |
704 |
* age check will be done upon returning the connection to the pool. |
Lines 711-717
Link Here
|
711 |
/** |
711 |
/** |
712 |
* Time in milliseconds to keep this connection alive even when used. |
712 |
* Time in milliseconds to keep this connection alive even when used. |
713 |
* When a connection is returned to the pool, the pool will check to see if the |
713 |
* When a connection is returned to the pool, the pool will check to see if the |
714 |
* ((now - time-when-connected) > maxAge) has been reached, and if so, |
714 |
* ((now - time-when-connected) > maxAge) has been reached, and if so, |
715 |
* it closes the connection rather than returning it to the pool. |
715 |
* it closes the connection rather than returning it to the pool. |
716 |
* The default value is 0, which implies that connections will be left open and no |
716 |
* The default value is 0, which implies that connections will be left open and no |
717 |
* age check will be done upon returning the connection to the pool. |
717 |
* age check will be done upon returning the connection to the pool. |