Tabnine Logo
PoolingProfile.getExhaustedAction
Code IndexAdd Tabnine to your IDE (free)

How to use
getExhaustedAction
method
in
org.mule.config.PoolingProfile

Best Java code snippets using org.mule.config.PoolingProfile.getExhaustedAction (Showing top 19 results out of 315)

origin: org.mule/mule-core

public PoolingProfile(PoolingProfile pp)
{
  this.maxActive = pp.getMaxActive();
  this.maxIdle = pp.getMaxIdle();
  this.maxWait = pp.getMaxWait();
  this.exhaustedAction = pp.getExhaustedAction();
  this.initialisationPolicy = pp.getInitialisationPolicy();
}
origin: org.mule.modules/mule-module-servicenow

  private static org.apache.commons.pool.impl.GenericKeyedObjectPool.Config toConfig(org.mule.config.PoolingProfile connectionPoolingProfile) {
    org.apache.commons.pool.impl.GenericKeyedObjectPool.Config config = new org.apache.commons.pool.impl.GenericKeyedObjectPool.Config();
    if (connectionPoolingProfile!= null) {
      config.maxIdle = connectionPoolingProfile.getMaxIdle();
      config.maxActive = connectionPoolingProfile.getMaxActive();
      config.maxWait = connectionPoolingProfile.getMaxWait();
      config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
      config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
      config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
    }
    return config;
  }
}
origin: org.mule.modules/mule-module-ldap

  private static org.apache.commons.pool.impl.GenericKeyedObjectPool.Config toConfig(org.mule.config.PoolingProfile connectionPoolingProfile) {
    org.apache.commons.pool.impl.GenericKeyedObjectPool.Config config = new org.apache.commons.pool.impl.GenericKeyedObjectPool.Config();
    if (connectionPoolingProfile!= null) {
      config.maxIdle = connectionPoolingProfile.getMaxIdle();
      config.maxActive = connectionPoolingProfile.getMaxActive();
      config.maxWait = connectionPoolingProfile.getMaxWait();
      config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
      config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
      config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
    }
    return config;
  }
}
origin: org.mule.modules/mule-module-twitter

  private static org.apache.commons.pool.impl.GenericKeyedObjectPool.Config toConfig(org.mule.config.PoolingProfile connectionPoolingProfile) {
    org.apache.commons.pool.impl.GenericKeyedObjectPool.Config config = new org.apache.commons.pool.impl.GenericKeyedObjectPool.Config();
    if (connectionPoolingProfile!= null) {
      config.maxIdle = connectionPoolingProfile.getMaxIdle();
      config.maxActive = connectionPoolingProfile.getMaxActive();
      config.maxWait = connectionPoolingProfile.getMaxWait();
      config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
      config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
      config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
    }
    return config;
  }
}
origin: mulesoft/magento-connector

  private static org.apache.commons.pool.impl.GenericKeyedObjectPool.Config toConfig(org.mule.config.PoolingProfile connectionPoolingProfile) {
    org.apache.commons.pool.impl.GenericKeyedObjectPool.Config config = new org.apache.commons.pool.impl.GenericKeyedObjectPool.Config();
    if (connectionPoolingProfile!= null) {
      config.maxIdle = connectionPoolingProfile.getMaxIdle();
      config.maxActive = connectionPoolingProfile.getMaxActive();
      config.maxWait = connectionPoolingProfile.getMaxWait();
      config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
      config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
      config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
    }
    return config;
  }
}
origin: org.mule.modules/mule-module-cmis

  private static org.apache.commons.pool.impl.GenericKeyedObjectPool.Config toConfig(org.mule.config.PoolingProfile connectionPoolingProfile) {
    org.apache.commons.pool.impl.GenericKeyedObjectPool.Config config = new org.apache.commons.pool.impl.GenericKeyedObjectPool.Config();
    if (connectionPoolingProfile!= null) {
      config.maxIdle = connectionPoolingProfile.getMaxIdle();
      config.maxActive = connectionPoolingProfile.getMaxActive();
      config.maxWait = connectionPoolingProfile.getMaxWait();
      config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
      config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
      config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
    }
    return config;
  }
}
origin: org.mule.modules/mule-module-workday

public void initialise() {
  GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config();
  if (connectionPoolingProfile!= null) {
    config.maxIdle = connectionPoolingProfile.getMaxIdle();
    config.maxActive = connectionPoolingProfile.getMaxActive();
    config.maxWait = connectionPoolingProfile.getMaxWait();
    config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
    config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
    config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
  }
  connectionPool = new GenericKeyedObjectPool(new StaffingModuleConnectionFactory(this), config);
  if (retryPolicyTemplate == null) {
    retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE);
  }
}
origin: org.mule.modules/mule-module-workday

public void initialise() {
  GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config();
  if (connectionPoolingProfile!= null) {
    config.maxIdle = connectionPoolingProfile.getMaxIdle();
    config.maxActive = connectionPoolingProfile.getMaxActive();
    config.maxWait = connectionPoolingProfile.getMaxWait();
    config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
    config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
    config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
  }
  connectionPool = new GenericKeyedObjectPool(new TimeTrackingModuleConnectionFactory(this), config);
  if (retryPolicyTemplate == null) {
    retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE);
  }
}
origin: org.mule.modules/mule-module-workday

public void initialise() {
  GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config();
  if (connectionPoolingProfile!= null) {
    config.maxIdle = connectionPoolingProfile.getMaxIdle();
    config.maxActive = connectionPoolingProfile.getMaxActive();
    config.maxWait = connectionPoolingProfile.getMaxWait();
    config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
    config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
    config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
  }
  connectionPool = new GenericKeyedObjectPool(new AbsenceModuleConnectionFactory(this), config);
  if (retryPolicyTemplate == null) {
    retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE);
  }
}
origin: org.mule.modules/mule-module-workday

public void initialise() {
  GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config();
  if (connectionPoolingProfile!= null) {
    config.maxIdle = connectionPoolingProfile.getMaxIdle();
    config.maxActive = connectionPoolingProfile.getMaxActive();
    config.maxWait = connectionPoolingProfile.getMaxWait();
    config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
    config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
    config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
  }
  connectionPool = new GenericKeyedObjectPool(new HumanResourcesModuleConnectionFactory(this), config);
  if (retryPolicyTemplate == null) {
    retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE);
  }
}
origin: org.mule.modules/mule-module-workday

public void initialise() {
  GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config();
  if (connectionPoolingProfile!= null) {
    config.maxIdle = connectionPoolingProfile.getMaxIdle();
    config.maxActive = connectionPoolingProfile.getMaxActive();
    config.maxWait = connectionPoolingProfile.getMaxWait();
    config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
    config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
    config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
  }
  connectionPool = new GenericKeyedObjectPool(new RecruitingModuleConnectionFactory(this), config);
  if (retryPolicyTemplate == null) {
    retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE);
  }
}
origin: org.mule.modules/mule-module-workday

public void initialise() {
  GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config();
  if (connectionPoolingProfile!= null) {
    config.maxIdle = connectionPoolingProfile.getMaxIdle();
    config.maxActive = connectionPoolingProfile.getMaxActive();
    config.maxWait = connectionPoolingProfile.getMaxWait();
    config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
    config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
    config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
  }
  connectionPool = new GenericKeyedObjectPool(new PayrollModuleConnectionFactory(this), config);
  if (retryPolicyTemplate == null) {
    retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE);
  }
}
origin: org.mule.modules/mule-module-workday

public void initialise() {
  GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config();
  if (connectionPoolingProfile!= null) {
    config.maxIdle = connectionPoolingProfile.getMaxIdle();
    config.maxActive = connectionPoolingProfile.getMaxActive();
    config.maxWait = connectionPoolingProfile.getMaxWait();
    config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
    config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
    config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
  }
  connectionPool = new GenericKeyedObjectPool(new PerformanceModuleConnectionFactory(this), config);
  if (retryPolicyTemplate == null) {
    retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE);
  }
}
origin: org.mule.modules/mule-module-workday

public void initialise() {
  GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config();
  if (connectionPoolingProfile!= null) {
    config.maxIdle = connectionPoolingProfile.getMaxIdle();
    config.maxActive = connectionPoolingProfile.getMaxActive();
    config.maxWait = connectionPoolingProfile.getMaxWait();
    config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
    config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
    config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
  }
  connectionPool = new GenericKeyedObjectPool(new CompensationModuleConnectionFactory(this), config);
  if (retryPolicyTemplate == null) {
    retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE);
  }
}
origin: org.mule.modules/mule-module-workday

public void initialise() {
  GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config();
  if (connectionPoolingProfile!= null) {
    config.maxIdle = connectionPoolingProfile.getMaxIdle();
    config.maxActive = connectionPoolingProfile.getMaxActive();
    config.maxWait = connectionPoolingProfile.getMaxWait();
    config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
    config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
    config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
  }
  connectionPool = new GenericKeyedObjectPool(new BenefitsModuleConnectionFactory(this), config);
  if (retryPolicyTemplate == null) {
    retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE);
  }
}
origin: org.mule.modules/mule-module-workday

public void initialise() {
  GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config();
  if (connectionPoolingProfile!= null) {
    config.maxIdle = connectionPoolingProfile.getMaxIdle();
    config.maxActive = connectionPoolingProfile.getMaxActive();
    config.maxWait = connectionPoolingProfile.getMaxWait();
    config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
    config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
    config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
  }
  connectionPool = new GenericKeyedObjectPool(new WorkforceModuleConnectionFactory(this), config);
  if (retryPolicyTemplate == null) {
    retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE);
  }
}
origin: org.mule.modules/mule-module-workday

public void initialise() {
  GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config();
  if (connectionPoolingProfile!= null) {
    config.maxIdle = connectionPoolingProfile.getMaxIdle();
    config.maxActive = connectionPoolingProfile.getMaxActive();
    config.maxWait = connectionPoolingProfile.getMaxWait();
    config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
    config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
    config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
  }
  connectionPool = new GenericKeyedObjectPool(new TalentModuleConnectionFactory(this), config);
  if (retryPolicyTemplate == null) {
    retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE);
  }
}
origin: org.mule.modules/mule-module-workday

public void initialise() {
  GenericKeyedObjectPool.Config config = new GenericKeyedObjectPool.Config();
  if (connectionPoolingProfile!= null) {
    config.maxIdle = connectionPoolingProfile.getMaxIdle();
    config.maxActive = connectionPoolingProfile.getMaxActive();
    config.maxWait = connectionPoolingProfile.getMaxWait();
    config.whenExhaustedAction = ((byte) connectionPoolingProfile.getExhaustedAction());
    config.timeBetweenEvictionRunsMillis = connectionPoolingProfile.getEvictionCheckIntervalMillis();
    config.minEvictableIdleTimeMillis = connectionPoolingProfile.getMinEvictionMillis();
  }
  connectionPool = new GenericKeyedObjectPool(new PayrollInterfaceModuleConnectionFactory(this), config);
  if (retryPolicyTemplate == null) {
    retryPolicyTemplate = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_DEFAULT_RETRY_POLICY_TEMPLATE);
  }
}
origin: org.mule/mule-core

public void initialise() throws InitialisationException
{
  GenericObjectPool.Config config = new GenericObjectPool.Config();
  if (poolingProfile != null)
  {
    config.maxIdle = poolingProfile.getMaxIdle();
    config.maxActive = poolingProfile.getMaxActive();
    config.maxWait = poolingProfile.getMaxWait();
    config.whenExhaustedAction = (byte) poolingProfile.getExhaustedAction();
    config.minEvictableIdleTimeMillis = poolingProfile.getMinEvictionMillis();
    config.timeBetweenEvictionRunsMillis = poolingProfile.getEvictionCheckIntervalMillis();
  }
  pool = new GenericObjectPool(getPooledObjectFactory(), config);
  try
  {
    applyInitialisationPolicy();
  }
  catch (Exception e)
  {
    throw new InitialisationException(e, this);
  }
}
org.mule.configPoolingProfilegetExhaustedAction

Popular methods of PoolingProfile

  • getEvictionCheckIntervalMillis
  • getMaxActive
  • getMaxIdle
  • getMaxWait
  • getMinEvictionMillis
  • <init>
  • getInitialisationPolicy

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Table (org.hibernate.mapping)
    A relational table
  • Top Sublime Text plugins
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