dev@grizzly.java.net

rational value of "size" parameter for method of ThreadCache.obtainIndex

From: ming qin <mingqin1_at_yahoo.com>
Date: Sat, 13 Mar 2010 01:00:41 -0800 (PST)

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