> The problem with cache invalidation for muttable objects in a
> multithreaded environment isn't straightforward

Why would two threads access the same request?
If it's the case, wouldn't we need to add proper synchronization to the
getStream method anyway? 

        public synchronized InputStream getStream() throws IOException
        {
                InputStream result = this.inputStream;
                this.inputStream = null;
                setAvailable(false);
                return result;
        } 


-Vincent

Reply via email to