CacheBox: Enterprise Caching
2.x
2.x
  • Introduction
  • What's New With 2.1.0
  • What's New With 2.0.0
  • About This Book
  • Author
  • Overview
    • CacheBox RefCard
    • Useful Resources
    • Features at a Glance
    • System Requirements
  • Installing CacheBox
    • Installation
  • Caching Concepts
    • Caching Considerations
    • Cache Loading
    • Definitions
    • Java Soft References
  • Cache Topologies
    • Single Instance/In-Process
    • Single Instance/Out-Process
    • Replicated
    • Distributed
  • CacheBox Architecture
    • CacheFactory
    • CacheBoxConfig
    • EventManager
    • ColdBox
    • LogBox
    • ICacheProvider
    • ICacheStats
    • IObjectStore
    • IEvictionPolicy
    • AbstractEvictionPolicy
    • IColdboxApplicationCache
  • Creating CacheBox
    • Common CacheFactory Methods
    • Cache Cleanup/Reaping
  • CacheBox Configuration
    • CacheBox DSL
      • LogBoxConfig
      • Scope Registration
      • Default Cache
      • Caches
      • Listeners
    • CacheBox Config Object
    • ColdBox Configuration
  • Cache Providers
    • Couchbase Providers
    • CF Providers
    • Railo Providers
    • Mock Provider
    • CacheBox Provider
  • CacheBox Object Stores
    • ConcurrentStore
    • ConcurrentSoftReferenceStore
    • DiskStore
    • JDBCStore
    • BlackholeStore
  • CacheBox Eviction Policies
    • Using Your Own Policy
  • CacheBox Event Model
    • CacheBox Events
    • Provider Events
    • Cache Listeners
  • Cache Reporting
    • Creating Your Own Skins
      • Skin Templates
      • ReportHandler
        • Action Commands
Powered by GitBook
On this page

Was this helpful?

Edit on Git
Export as PDF
  1. CacheBox Event Model

CacheBox Events

CacheBox's aggregation functionality offers a wide gamut of life cycle events that are announced at certain points in execution time. Below are the current events announced by the CacheBox CacheFactory. Remember, this is the CacheFactory and not a CacheBox Cache Provider.

Event

Data

Description

afterCacheRegistration

cache: the registered reference

beforeCacheRemoval

cache: the cahce reference to remove

Called before a removeCache() operation is called on CacheBox

afterCacheRemoval

cache: the cache name

Called after the cache has been removed from CacheBox. You receive only the name of the cache removed.

beforeCacheReplacement

oldCache: the cache reference to replace newCache: the new cache reference to replace with

Called right before a cache is replaced with another cache in CacheBox.

afterCacheFactoryConfiguration

cacheFactory: A reference to the CacheBox factory created

Called after a CacheBox instance has been created, configured and started up. This is a great interception point for creating cache loaders or on startup scripts.

beforeCacheFactoryShutdown

cacheFactory: A reference to the CacheBox factory created

Called right before the CacheBox instance is shutdown gracefully

afterCacheFactoryShutdown

cacheFactory: A reference to the CacheBox factory created

Called right after the CacheBox instance has been shutdown gracefully

beforeCacheShutdown

cache: A reference to the cache shutdown

Called right before a specific cache provider is shutdown by CacheBox Factory

afterCacheShutdown

cache: A reference to the cache that was shutdown

Called right after a specific cache provider has been shut down by CacheBox Factory and before its removed

PreviousCacheBox Event ModelNextProvider Events

Last updated 7 years ago

Was this helpful?