|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AsynchronousCacheReloader
A tagging interface to support CacheReloaders that should be run asynchronously (in the background). When an expired object with an AsynchronousCacheReloader is fetched from the cache, a background thread is queued to run the reload() method of the CacheReloader. The old value is returned from the cache until the reload() method in the background thread finishes. The same non-blocking behavior is seen when the ReloadableCache.reload() method is called explicitly (that is, it spawns a backtround thread and returns immediately without waiting). The advantage of this is that your cached objects can be reloaded (based on TTL expiration) without blocking the user's thread. So it might be useful in cases where the rebuilding of the cached object is expensive. The disadvantage is that it can starve your server for threads, if overused.
CacheReloader
, ReloadableCache
Method Summary |
---|
Methods inherited from interface com.bea.p13n.cache.CacheReloader |
---|
reload |
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.