|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
One IdGenerator instance will exist for each cacheable servlet identified in WebSphere. When implementing this interface, be aware that multiple threads may be using the same IdGenerator concurrently.
The IdGenerator normally is responsible for generating cache entry ids and data ids, and invalidating data ids.
Method Summary | |
java.lang.String |
getId(ServletCacheRequest request)
This method is called once on every request for a cacheable servlet. |
int |
getSharingPolicy(ServletCacheRequest request)
This method is included for forward compatibility with later versions of WebSphere which will allow sharing of cache entries among different application servers. |
void |
initialize(CacheConfig cc)
This method is called once on servlet initialization, and should take configuration values from its CacheConfig argurment and store them locally. |
Method Detail |
public void initialize(CacheConfig cc)
public java.lang.String getId(ServletCacheRequest request)
public int getSharingPolicy(ServletCacheRequest request)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |