Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.p13n.cache
Interface AsynchronousCacheReloader

All Superinterfaces:
  CacheReloader

public interface AsynchronousCacheReloader
extends CacheReloader

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.

See Also:
  `CacheReloader`, `ReloadableCache`

Methods inherited from interface com.bea.p13n.cache.CacheReloader
`reload`

Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 BEA Systems, Inc. All Rights Reserved