congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AtomikosDataSourceBean.setMinPoolSize
Code IndexAdd Tabnine 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)

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

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now