|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IdGenerator
The IdGenerator normally is responsible for generating cache entry ids and data ids, and invalidating data ids.
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.
Method Summary | |
---|---|
java.lang.String |
getId(ServletCacheRequest request)
This method is called once on every request for a cacheable servlet. |
int |
getSharingPolicy(ServletCacheRequest request)
Deprecated. |
void |
initialize(CacheConfig cc)
Deprecated. This method is called once on servlet initialization, and should take configuration values from its CacheConfig argurment and store them locally. Additional config information from user applications or other sources may be read here as well. |
Method Detail |
---|
void initialize(CacheConfig cc)
java.lang.String getId(ServletCacheRequest request)
request
- The request object being used for this invocation
int getSharingPolicy(ServletCacheRequest request)
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |