Example usage for org.apache.commons.pool.impl GenericObjectPool DEFAULT_MAX_ACTIVE

List of usage examples for org.apache.commons.pool.impl GenericObjectPool DEFAULT_MAX_ACTIVE

Introduction

In this page you can find the example usage for org.apache.commons.pool.impl GenericObjectPool DEFAULT_MAX_ACTIVE.

Prototype

int DEFAULT_MAX_ACTIVE

To view the source code for org.apache.commons.pool.impl GenericObjectPool DEFAULT_MAX_ACTIVE.

Click Source Link

Document

The default cap on the total number of active instances from the pool.

Usage

From source file:org.springframework.aop.target.CommonsPoolTargetSource.java

/**
 * Create a CommonsPoolTargetSource with default settings.
 * Default maximum size of the pool is 8.
 * @see #setMaxSize/*  w  ww.  j  a  v  a2  s .  co m*/
 * @see GenericObjectPool#setMaxActive
 */
public CommonsPoolTargetSource() {
    setMaxSize(GenericObjectPool.DEFAULT_MAX_ACTIVE);
}

From source file:org.springframework.jms.listener.serversession.CommonsPoolServerSessionFactory.java

/**
 * Create a CommonsPoolServerSessionFactory with default settings.
 * Default maximum size of the pool is 8.
 * @see #setMaxSize/*from  w  ww. j  ava2 s.  c  o m*/
 * @see GenericObjectPool#setMaxActive
 */
public CommonsPoolServerSessionFactory() {
    setMaxSize(GenericObjectPool.DEFAULT_MAX_ACTIVE);
}