"Bordet, Simone" wrote:
> it should be:
>
> public boolean isActive(Object id)
> {
> // Check whether an object with the given id is available in the
> cache
> boolean isActive;
> synchronized (getCacheLock())
> {
> isActive = getCache().peek(id) != null;
> }
> return isActive;
> }
True, but this check is so fragile anyway (regardless of how one does
it) that I think unsynched is ok.
YMMV.
/Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
- [jBoss-Dev] RE: findByPrimaryKey performance Bordet, Simone
- RE: [jBoss-Dev] RE: findByPrimaryKey performance Rickard �berg
- RE: [jBoss-Dev] RE: findByPrimaryKey performance Bordet, Simone
- Re: [jBoss-Dev] RE: findByPrimaryKey performance Rickard �berg
