Neoview JDBC Type 4 Driver API Reference (R2.2, R2.3, R2.4, R2.5)

The maximum number of physical connections that the pool (free and in-use) should contain. When the
maximum number of physical connections is reached, the Type 4 driver throws an SQLException with the
message "Maximum pool size reached." Specifying a value of 0 (zero) indicates there is no maximum size for
the pool. Specifying a value of -1 indicates no connection pooling is performed. The default value is -1,
indicating that no pooling of physical connections is done.
Parameters:
maxPoolSize - the maximum number of physical connections the pool should contain (free and in use).
See Also:
getMaxPoolSize(), setMaxPoolSize(int)
setMaxPoolSize
public void setMaxPoolSize(int maxPoolSize)
The maximum number of physical connections that the pool (free and in-use) should contain. When the
maximum number of physical connections is reached, the Type 4 driver throws an SQLException with the
message "Maximum pool size reached." Specifying a value of 0 (zero) indicates there is no maximum size for
the pool. Specifying a value of -1 indicates no connection pooling is performed. The default value is -1,
indicating that no pooling of physical connections is done.
Parameters:
maxPoolSize - the maximum number of physical connections the pool should contain (free and in use).
See Also:
getMaxPoolSize(), setMaxPoolSize(String)
getMaxPoolSize
public int getMaxPoolSize()
Returns the maximum number of physical connections that the pool (free and inuse) should contain. A value of
zero (0) indicates no maximum size. A value of -1 indicates that connection pooling is not being done.
Returns:
the maximum number of physical connections that the pool should contain.
See Also:
setMaxPoolSize(int)
setMinPoolSize
public void setMinPoolSize(java.lang.String minPoolSize)
Sets the number of physical connections the pool should keep available at all times.
Parameters:
minPoolSize - Limits the number of physical connection that can be in the free pool. When the number of
physical connections in the free pool reaches the value of minPoolSize, subsequent connections that are
closed are physically closed and are not added to the free pool. Specifying a value of 0 means that the
value of minPoolSize is the same as the value of maxPoolSize. If the value of maxPoolSize is -1, the value
of minPoolSize is ignored. The default value is 0. For this data source, it is recommended that you use the
default value.