Objecct

What is meant by cache stateless objects?
[48 byte] By [JK_JAVAa] at [2007-11-26 14:46:48]
# 1

Let's start with some "formal" definitions:

- A pool is a collection of stateless objects

- A cache is a collection of stateful objects

The main distinction between a cache and a pool is what is contained in them. In other words: when you retrieve an object from a cache or a pool, do you need a specific object, or will any object do? If you need a specific object, then each object maintains state; hence, you need to use a cache. If, on the other hand, you can use any object, then the objects do not maintain state and you can use a pool.

--> The wondrous world of Google, my friend..

http://www.google.be/search?hl=nl&q=cache+stateless+objects+java&meta=

Tribioa at 2007-7-8 8:34:28 > top of Java-index,Java Essentials,New To Java...