Hi,
well, it's just some expectation, how many objects of a such type I
want to have cached in a worker thread.
So these are really just expectations, based on common usecases.
WBR,
Alexey.
On Mar 13, 2010, at 10:00 , ming qin wrote:
> Hi:
> For Grizzly2dot0,
>
> In Context.class, size is assigned with int value of 4
> private static final ThreadCache.CachedTypeIndex<Context> CACHE_IDX =
> ThreadCache.obtainIndex(Context.class, 4);
>
> In DefaultMemoryManager.class , it is 2
> private static final
> ThreadCache.CachedTypeIndex<TrimAwareWrapper> CACHE_IDX =
> ThreadCache.obtainIndex(TrimAwareWrapper.class, 2);
>
> I don't understand how those values are determined.
>
> Any explanations on that?
>
> Thanks
> Ming Qin
> Cell Phone 858-353-2839
>