commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Radhakrishnan J <radhakrishna...@tavant.com>
Subject RE: [commons-pool] Question on whenExhaustedAction setting ?
Date Mon, 12 Jan 2004 10:58:16 GMT
I was referring to the below mentioned instance. The setter for
whenExhaustedAction ignores the WHEN_EXHAUSTED_FAIL case.

    public synchronized void setWhenExhaustedAction(byte
whenExhaustedAction) {
        switch(whenExhaustedAction) {
            case WHEN_EXHAUSTED_BLOCK:
            case WHEN_EXHAUSTED_FAIL:
            case WHEN_EXHAUSTED_GROW:
                _whenExhaustedAction = whenExhaustedAction;
                notifyAll();
                break;
            default:
                throw new IllegalArgumentException("whenExhaustedAction " +
whenExhaustedAction + " not recognized.");
        }
    }

-Radhakrishnan

-----Original Message-----
From: Dirk Verbeeck [mailto:dirk.verbeeck@pandora.be]
Sent: Monday, January 12, 2004 12:00 AM
To: Jakarta Commons Users List
Subject: Re: [commons-pool] Question on whenExhaustedAction setting ?


Where do you expect it to be set?

-- Dirk

Radhakrishnan J wrote:
> Hi,
> 
> I see that the 'whenExhaustedAction' attribute of the GenericObjectPool is
> never set to 'WHEN_EXHAUSTED_FAIL' option ? Why is this so ?
> 
> Thanks,
> Radhakrishnan
> 
> Radhakrishnan. J
> Tavant Technologies
> Work # +91-80-51190372
> Cell # +91-98860 48400
> 
> "Driving profit through channel collaboration"
> www.tavant.com



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message