User: mulder  
  Date: 00/10/08 08:05:41

  Modified:    src/main/org/jboss/minerva/pools ObjectPool.java
  Log:
  Change the default for blocking to "true".
  
  Revision  Changes    Path
  1.12      +3 -3      jboss/src/main/org/jboss/minerva/pools/ObjectPool.java
  
  Index: ObjectPool.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/jboss/src/main/org/jboss/minerva/pools/ObjectPool.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ObjectPool.java   2000/10/05 01:36:35     1.11
  +++ ObjectPool.java   2000/10/08 15:05:40     1.12
  @@ -28,7 +28,7 @@
    *   <LI>Shut it down</LI>
    * </OL>
    * @see org.jboss.minerva.pools.PooledObject
  - * @version $Revision: 1.11 $
  + * @version $Revision: 1.12 $
    * @author Aaron Mulder ([EMAIL PROTECTED])
    */
   public class ObjectPool implements PoolEventListener {
  @@ -52,7 +52,7 @@
       private long gcMinIdleMillis   = 1200000l; // must be unused by client for 20 
minutes
       private long gcIntervalMillis  =  120000l; // shrink & gc every 2 minutes
       private long lastGC = System.currentTimeMillis();
  -    private boolean blocking = false;
  +    private boolean blocking = true;
       private boolean trackLastUsed = false;
       private boolean invalidateOnError = false;
       private PrintWriter logWriter = null;
  @@ -394,7 +394,7 @@
        * will not return until an object is available.  Otherwise, the request
        * will return null immediately (and may be retried).  If multiple
        * requests block, there is no guarantee which will return first.  The
  -     * default is not to block (to return null).
  +     * default is to block.
        * @throws java.lang.IllegalStateException
        *    Occurs when you try to set the blocking parameter after the
        *    pool has been initialized.
  
  
  

Reply via email to