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:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to