|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExternalCacheAdapter
This is the service provider's interface (SPI) for plugging in an external cache (eg, the AFPA cache, a web server cache, a proxy server cache or a sprayer cache). Each implementation of this interface encapsulates the particular protocol supported by an external cache. The CacheCoordinator calls this interface to manage pages in external caches. It is always called locally.
Restrictions on JSP fragments cached externally are the following:
Method Summary | |
---|---|
void |
clear()
This method invalidates all pages from the external cache. |
void |
invalidateIds(java.util.Iterator ids)
This method invalidates dependency ids that are in the external cache. |
void |
invalidatePages(java.util.Iterator urls)
This method invalidates pages that are in the external cache. |
void |
postInvoke(ServletCacheRequest sreq,
javax.servlet.http.HttpServletResponse sresp)
This method is invoked after processing a cache hit or miss of an externally cacheable element |
void |
preInvoke(ServletCacheRequest sreq,
javax.servlet.http.HttpServletResponse sresp)
This method is invoked before processing a cache hit or miss of an externally cacheable element |
void |
setAddress(java.lang.String address)
This method sets the TCP/IP address of the cache adapter |
void |
writePages(java.util.Iterator externalCacheEntries)
This method writes pages to the external cache. |
Method Detail |
---|
void setAddress(java.lang.String address)
address
- Address of the cache adaptervoid writePages(java.util.Iterator externalCacheEntries)
externalCacheEntries
- The Enumeration of ExternalCacheEntry
objects for the pages that are to be cached.void invalidatePages(java.util.Iterator urls)
urls
- The List of URLs for the pages that have
previously been written to the external cache and need invalidation.void invalidateIds(java.util.Iterator ids)
ids
- The Enumeration of dependency ids that must be invalidatedvoid preInvoke(ServletCacheRequest sreq, javax.servlet.http.HttpServletResponse sresp)
sreq
- The request object being used for this invocationsresp
- The response object being used for this invocationvoid postInvoke(ServletCacheRequest sreq, javax.servlet.http.HttpServletResponse sresp)
sreq
- The request object being used for this invocationsresp
- The response object being used for this invocationvoid clear()
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |