net.jackofalltrades.util
Class Perl5UtilPool

java.lang.Object
  extended byorg.apache.commons.pool.BaseObjectPool
      extended byorg.apache.commons.pool.impl.GenericObjectPool
          extended bynet.jackofalltrades.util.Perl5UtilPool
All Implemented Interfaces:
org.apache.commons.pool.ObjectPool

public class Perl5UtilPool
extends org.apache.commons.pool.impl.GenericObjectPool

Provides pooling capabilities for objects of type org.apache.oro.text.perl.Perl5Util.

The org.apache.commons.pool.impl.GenericObjectPool superclass is configured internally. To modify the internal configuration of the superclass, the following properties should be set prior to the invocation of the JVM:

Tests "onBorrow", "onReturn", and "whileIdle" are disabled, because the method validateObject(Object) of the PoolablePerl5UtilFactory is not supported. The idle object eviction thread performs tests on all objects active in the pool. A Perl5Util object is considered "idle" after five (5) seconds of inactivity, and the idle object eviction thread waits ten (10) seconds between executions.

Since:
0.5-alpha
Version:
$Revision: 1.3 $ $Date: 2003/07/05 15:02:50 $
Author:
Bradley M. Handy

Nested Class Summary
 
Nested classes inherited from class org.apache.commons.pool.impl.GenericObjectPool
org.apache.commons.pool.impl.GenericObjectPool.Config
 
Field Summary
 
Fields inherited from class org.apache.commons.pool.impl.GenericObjectPool
DEFAULT_MAX_ACTIVE, DEFAULT_MAX_IDLE, DEFAULT_MAX_WAIT, DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS, DEFAULT_NUM_TESTS_PER_EVICTION_RUN, DEFAULT_TEST_ON_BORROW, DEFAULT_TEST_ON_RETURN, DEFAULT_TEST_WHILE_IDLE, DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS, DEFAULT_WHEN_EXHAUSTED_ACTION, WHEN_EXHAUSTED_BLOCK, WHEN_EXHAUSTED_FAIL, WHEN_EXHAUSTED_GROW
 
Constructor Summary
Perl5UtilPool(PoolablePerl5UtilFactory factory)
          Creates a new instance of Perl5UtilPool.
 
Methods inherited from class org.apache.commons.pool.impl.GenericObjectPool
addObject, borrowObject, clear, close, evict, getMaxActive, getMaxIdle, getMaxWait, getMinEvictableIdleTimeMillis, getNumActive, getNumIdle, getNumTestsPerEvictionRun, getTestOnBorrow, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, getWhenExhaustedAction, invalidateObject, returnObject, setConfig, setFactory, setMaxActive, setMaxIdle, setMaxWait, setMinEvictableIdleTimeMillis, setNumTestsPerEvictionRun, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setWhenExhaustedAction, startEvictor
 
Methods inherited from class org.apache.commons.pool.BaseObjectPool
assertOpen, isClosed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Perl5UtilPool

public Perl5UtilPool(PoolablePerl5UtilFactory factory)
Creates a new instance of Perl5UtilPool.

Parameters:
factory - an instance of PoolablePerl5UtilFactory.


Copyright © 2002-2003 Jack-of-all-trades Programming Services. All Rights Reserved.