org.apache.openejb.core.stateful
Interface Cache.CacheListener<V>

All Known Implementing Classes:
StatefulContainer.StatefulCacheListener
Enclosing interface:
Cache<K,V>

public static interface Cache.CacheListener<V>

Callback listener for cache events.


Method Summary
 void afterLoad(V value)
          Called after an entry is loaded from a store.
 void beforeStore(V value)
          Called before an entry is written to a store.
 void timedOut(V value)
          Called when an instance has been removed from the cache due to a time-out.
 

Method Detail

afterLoad

void afterLoad(V value)
               throws Exception
Called after an entry is loaded from a store.

Throws:
Exception - if there is a problem with the instance

beforeStore

void beforeStore(V value)
                 throws Exception
Called before an entry is written to a store.

Throws:
Exception - if there is a problem with the instance

timedOut

void timedOut(V value)
Called when an instance has been removed from the cache due to a time-out.



Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.