Codota Logo
AtomikosDataSourceBean.setMinPoolSize
Code IndexAdd Codota to your IDE (free)

How to use
setMinPoolSize
method
in
com.atomikos.jdbc.AtomikosDataSourceBean

Best Java code snippets using com.atomikos.jdbc.AtomikosDataSourceBean.setMinPoolSize (Showing top 7 results out of 315)

  • Common ways to obtain AtomikosDataSourceBean
private void myMethod () {
AtomikosDataSourceBean a =
  • Codota Iconnew AtomikosDataSourceBean()
  • Smart code suggestions by Codota
}
origin: hs-web/hsweb-framework

atomikosDataSourceBean.setMinPoolSize(getMinPoolSize());
atomikosDataSourceBean.setDefaultIsolationLevel(getDefaultIsolationLevel());
atomikosDataSourceBean.setMaintenanceInterval(getMaintenanceInterval());
origin: apache/incubator-shardingsphere

private void setPoolProperties(final AtomikosDataSourceBean dataSourceBean, final YamlDataSourceParameter parameter) {
  dataSourceBean.setMaintenanceInterval((int) (parameter.getMaintenanceIntervalMilliseconds() / 1000));
  dataSourceBean.setMinPoolSize(parameter.getMinPoolSize() < 0 ? 0 : parameter.getMinPoolSize());
  dataSourceBean.setMaxPoolSize(parameter.getMaxPoolSize());
  dataSourceBean.setBorrowConnectionTimeout((int) parameter.getConnectionTimeoutMilliseconds() / 1000);
  dataSourceBean.setReapTimeout((int) parameter.getMaxLifetimeMilliseconds() / 1000);
  dataSourceBean.setMaxIdleTime((int) parameter.getIdleTimeoutMilliseconds() / 1000);
}

origin: apache/incubator-shardingsphere

private void setPoolProperties(final AtomikosDataSourceBean dataSourceBean, final YamlDataSourceParameter parameter) {
  dataSourceBean.setMaintenanceInterval((int) (parameter.getMaintenanceIntervalMilliseconds() / 1000));
  dataSourceBean.setMinPoolSize(parameter.getMinPoolSize() < 0 ? 0 : parameter.getMinPoolSize());
  dataSourceBean.setMaxPoolSize(parameter.getMaxPoolSize());
  dataSourceBean.setBorrowConnectionTimeout((int) parameter.getConnectionTimeoutMilliseconds() / 1000);
  dataSourceBean.setReapTimeout((int) parameter.getMaxLifetimeMilliseconds() / 1000);
  dataSourceBean.setMaxIdleTime((int) parameter.getIdleTimeoutMilliseconds() / 1000);
}

origin: OpenNMS/opennms

@Override
public void setMinPool(int minPool) {
  super.setMinPoolSize(minPool);
}
origin: org.hswebframework.web/hsweb-datasource-jta

atomikosDataSourceBean.setMinPoolSize(getMinPoolSize());
atomikosDataSourceBean.setDefaultIsolationLevel(getDefaultIsolationLevel());
atomikosDataSourceBean.setMaintenanceInterval(getMaintenanceInterval());
origin: io.shardingsphere/sharding-transaction-2pc-xa

private void setPoolProperties(final DataSourceParameter parameter) {
  delegate.setMaintenanceInterval((int) (parameter.getMaintenanceIntervalMilliseconds() / 1000));
  delegate.setMinPoolSize(parameter.getMinPoolSize() < 0 ? 0 : parameter.getMinPoolSize());
  delegate.setMaxPoolSize(parameter.getMaxPoolSize());
  delegate.setBorrowConnectionTimeout((int) parameter.getConnectionTimeoutMilliseconds() / 1000);
  delegate.setReapTimeout((int) parameter.getMaxLifetimeMilliseconds() / 1000);
  delegate.setMaxIdleTime((int) parameter.getIdleTimeoutMilliseconds() / 1000);
}

origin: org.atteo.moonshine/atomikos

@Override
public DataSource wrap(String name, XADataSource xaDataSource, PoolOptions poolOptions, String testQuery) {
  AtomikosDataSourceBean wrapped = new AtomikosDataSourceBean();
  wrapped.setXaDataSource(xaDataSource);
  wrapped.setUniqueResourceName(name);
  if (poolOptions == null) {
    poolOptions = new PoolOptions();
  }
  if (poolOptions.getMaxLifeTime() != null && poolOptions.getMaxLifeTime() != 0) {
    wrapped.setMaxLifetime(poolOptions.getMaxLifeTime());
  } else {
    // test query is only needed when we don't know how long Atomikos can keep connections in the pool
    wrapped.setTestQuery(testQuery);
  }
  if (poolOptions.getMinPoolSize() != null) {
    wrapped.setMinPoolSize(poolOptions.getMinPoolSize());
  }
  if (poolOptions.getMaxPoolSize() != null) {
    wrapped.setMaxPoolSize(poolOptions.getMaxPoolSize());
  }
  if (poolOptions.getMaxIdleTime() != null) {
    wrapped.setMaxIdleTime(poolOptions.getMaxIdleTime());
  }
  if (poolOptions.getReapTimeout() != null) {
    wrapped.setReapTimeout(poolOptions.getReapTimeout());
  }
  return wrapped;
}
com.atomikos.jdbcAtomikosDataSourceBeansetMinPoolSize

Popular methods of AtomikosDataSourceBean

  • setUniqueResourceName
  • <init>
  • setXaDataSource
    Sets the XADataSource directly - instead of providing the xaDataSourceClassName and xaProperties.
  • setMaxIdleTime
  • setMaxPoolSize
  • setXaDataSourceClassName
    Sets the fully qualified underlying XADataSource class name. Required, unless you call setXaDataSour
  • setXaProperties
    Sets the properties (name,value pairs) used to configure the XADataSource. Required, unless you call
  • setReapTimeout
  • setBorrowConnectionTimeout
  • setMaintenanceInterval
  • setTestQuery
  • setMaxLifetime
  • setTestQuery,
  • setMaxLifetime,
  • close,
  • getBorrowConnectionTimeout,
  • getLogWriter,
  • getLoginTimeout,
  • getMaintenanceInterval,
  • getMaxIdleTime,
  • getMaxLifetime

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • getSystemService (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Menu (java.awt)
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now