Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.jdeveloper.java
Interface CacheSupport

All Known Implementing Classes:
CachedFileProvider, JavaModel.CacheTracker, SimpleFileProvider

public interface CacheSupport

The CacheSupport is a supplemental interface for cache support. Cache begin and ends are reference counted, so clients should be sure to match calls to both, with the endCacheUse() in a finally block.

The cache flush is for cases in which clients perform an operation in the data provider which may cause cached results to become invalid. The flush will cause the cache to be cleared regardless of who is using the cache at the moment. Most clients will probably not need to flush the cache explicitly, as the data provider will implicitly flush the cache when all clients end their use of the cache.


Method Summary
 void beginCacheUse()
          Instructs the data provider to enable the cache support.
 void endCacheUse()
          Instructs the data provider to release the cache support.
 void flushCache()
          Instructs the data provider to force a cache flush.

 

Method Detail

beginCacheUse

void beginCacheUse()
Instructs the data provider to enable the cache support. Since multiple clients may be using the data provider at the same time with cachesupport enabled, each client needs to make sure to call endCacheUse() when finished to ensure that the cache can be freed when it is no longer needed.

endCacheUse

void endCacheUse()
Instructs the data provider to release the cache support.

flushCache

void flushCache()
Instructs the data provider to force a cache flush.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.