com.go.teaservlet
Interface RegionCachingContext

All Known Subinterfaces:
AdminHttpContext

public interface RegionCachingContext

Version:
21 , 6/29/01
Author:
Brian S O'Neill

Method Summary
 void cache(long ttlMillis, java.lang.Object key, Substitution s)
          Caches and reuses a region of a page.
 void cache(long ttlMillis, Substitution s)
          Caches and reuses a region of a page.
 void cache(Substitution s)
          Caches and reuses a region of a page.
 RegionCachingApplication.ClusterCacheInfo getClusterCacheInfo()
           
 RegionCachingApplication.RegionCacheInfo getRegionCacheInfo()
           
 void nocache(Substitution s)
           
 

Method Detail

cache

public void cache(Substitution s)
           throws java.lang.Exception
Caches and reuses a region of a page. The cached region expies after a default time-to-live period has elapsed.
Parameters:
s - substitution block whose contents will be cached

cache

public void cache(long ttlMillis,
                  Substitution s)
           throws java.lang.Exception
Caches and reuses a region of a page. The cached region expies after a the specified time-to-live period has elapsed.
Parameters:
ttlMillis - maximum time to live of cached region, in milliseconds
s - substitution block whose contents will be cached

cache

public void cache(long ttlMillis,
                  java.lang.Object key,
                  Substitution s)
           throws java.lang.Exception
Caches and reuses a region of a page. The cached region expies after a the specified time-to-live period has elapsed. An additional parameter is specified which helps to identify the uniqueness of the region.
Parameters:
ttlMillis - maximum time to live of cached region, in milliseconds
key - key to further identify cache region uniqueness
s - substitution block whose contents will be cached

nocache

public void nocache(Substitution s)
             throws java.lang.Exception

getRegionCacheInfo

public RegionCachingApplication.RegionCacheInfo getRegionCacheInfo()

getClusterCacheInfo

public RegionCachingApplication.ClusterCacheInfo getClusterCacheInfo()