@Alias(value="pooling-profile") public class DbPoolingProfile extends Object implements org.mule.runtime.api.config.DatabasePoolingProfile
| Constructor and Description |
|---|
DbPoolingProfile()
Creates a new instance of DbPoolingProfile
|
DbPoolingProfile(int minPoolSize,
int maxPoolSize,
int acquireIncrement,
int preparedStatementCacheSize,
int maxWait,
TimeUnit maxWaitUnit,
int maxIdleTime,
int maxStatements,
boolean testConnectionOnCheckout,
Map<String,Object> additionalProperties)
Creates a new instance of DbPoolingProfile with the given arguments.
|
DbPoolingProfile(int minPoolSize,
int maxPoolSize,
int acquireIncrement,
int preparedStatementCacheSize,
int maxWait,
TimeUnit maxWaitUnit,
int maxIdleTime,
Map<String,Object> additionalProperties)
Creates a new instance of DbPoolingProfile with the given arguments.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getAcquireIncrement() |
Map<String,Object> |
getAdditionalProperties() |
int |
getMaxIdleTime() |
int |
getMaxPoolSize() |
int |
getMaxStatements() |
int |
getMaxWait() |
TimeUnit |
getMaxWaitUnit() |
int |
getMinPoolSize() |
int |
getPreparedStatementCacheSize() |
boolean |
getTestConnectionOnCheckout() |
int |
hashCode() |
public DbPoolingProfile()
public DbPoolingProfile(int minPoolSize,
int maxPoolSize,
int acquireIncrement,
int preparedStatementCacheSize,
int maxWait,
TimeUnit maxWaitUnit,
int maxIdleTime,
Map<String,Object> additionalProperties)
minPoolSize - Minimum number of connections a pool maintains at any given timemaxPoolSize - Maximum number of connections a pool maintains at any given timeacquireIncrement - Determines how many connections at a time to try to acquire when the pool is exhaustedpreparedStatementCacheSize - Determines how many statements are cached per pooled connection. Setting this to zero will
disable statement cachingmaxWait - The amount of time a client trying to obtain a connection waits for it to be acquired when
the pool is exhausted. Zero (default) means wait indefinitelymaxWaitUnit - A TimeUnit which qualifies the maxWait.maxIdleTime - Determines how many seconds a Connection can remain pooled but unused before being
discarded. Zero means idle connections never expire.additionalProperties - Additional properties used to configure pooling profile.public DbPoolingProfile(int minPoolSize,
int maxPoolSize,
int acquireIncrement,
int preparedStatementCacheSize,
int maxWait,
TimeUnit maxWaitUnit,
int maxIdleTime,
int maxStatements,
boolean testConnectionOnCheckout,
Map<String,Object> additionalProperties)
minPoolSize - Minimum number of connections a pool maintains at any given timemaxPoolSize - Maximum number of connections a pool maintains at any given timeacquireIncrement - Determines how many connections at a time to try to acquire when the pool is exhaustedpreparedStatementCacheSize - Determines how many statements are cached per pooled connection. Setting this to zero will
disable statement cachingmaxWait - The amount of time a client trying to obtain a connection waits for it to be acquired when
the pool is exhausted. Zero (default) means wait indefinitelymaxWaitUnit - A TimeUnit which qualifies the maxWait.maxIdleTime - Determines how many seconds a Connection can remain pooled but unused before being
discarded. Zero means idle connections never expire.maxStatements - Defines the total number PreparedStatements a DataSource will cache. The pool will destroy
the least-recently-used PreparedStatement when it hits this limit. When set to 0 statement
caching is turned off.testConnectionOnCheckout - If set to true, an operation will be performed at every connection checkout to verify that
the connection is valid. A better choice is to verify connections periodically using
c3p0.idleConnectionTestPeriod. In order to improve performance, we recommend that you set
this property to 'false'.additionalProperties - Additional properties used to configure pooling profile.public int getMaxPoolSize()
getMaxPoolSize in interface org.mule.runtime.api.config.DatabasePoolingProfilepublic int getMinPoolSize()
getMinPoolSize in interface org.mule.runtime.api.config.DatabasePoolingProfilepublic int getAcquireIncrement()
getAcquireIncrement in interface org.mule.runtime.api.config.DatabasePoolingProfilepublic int getPreparedStatementCacheSize()
getPreparedStatementCacheSize in interface org.mule.runtime.api.config.DatabasePoolingProfilepublic int getMaxWait()
getMaxWait in interface org.mule.runtime.api.config.DatabasePoolingProfilepublic TimeUnit getMaxWaitUnit()
getMaxWaitUnit in interface org.mule.runtime.api.config.DatabasePoolingProfilepublic int getMaxIdleTime()
public int getMaxStatements()
public boolean getTestConnectionOnCheckout()
Copyright © 2021. All rights reserved.