Tabnine Logo
AtomikosDataSourceBean.setReapTimeout
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: hs-web/hsweb-framework

atomikosDataSourceBean.setDefaultIsolationLevel(getDefaultIsolationLevel());
atomikosDataSourceBean.setMaintenanceInterval(getMaintenanceInterval());
atomikosDataSourceBean.setReapTimeout(getReapTimeout());
atomikosDataSourceBean.setTestQuery(getTestQuery());
atomikosDataSourceBean.setXaProperties(getXaProperties());
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: org.hswebframework.web/hsweb-datasource-jta

atomikosDataSourceBean.setDefaultIsolationLevel(getDefaultIsolationLevel());
atomikosDataSourceBean.setMaintenanceInterval(getMaintenanceInterval());
atomikosDataSourceBean.setReapTimeout(getReapTimeout());
atomikosDataSourceBean.setTestQuery(getTestQuery());
atomikosDataSourceBean.setXaProperties(getXaProperties());
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.jdbcAtomikosDataSourceBeansetReapTimeout

Popular methods of AtomikosDataSourceBean

  • setUniqueResourceName
  • <init>
  • setXaDataSource
    Sets the XADataSource directly - instead of providing the xaDataSourceClassName and xaProperties.
  • setMaxIdleTime
  • setMaxPoolSize
  • setMinPoolSize
  • 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
  • setBorrowConnectionTimeout
  • setMaintenanceInterval
  • setTestQuery
  • setMaxLifetime
  • setTestQuery,
  • setMaxLifetime,
  • close,
  • getBorrowConnectionTimeout,
  • getLogWriter,
  • getLoginTimeout,
  • getMaintenanceInterval,
  • getMaxIdleTime,
  • getMaxLifetime

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ImageIO (javax.imageio)
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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