Modifier | Constructor and Description |
---|---|
protected |
Notifier(java.lang.Class<T> flushTypeClass)
Constructor
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isFlushable(T flushTarget)
When registered (via CacheFlusher.setNotifier())
called by the system for each time an instance of type T
is being flushed.
|
protected Notifier(java.lang.Class<T> flushTypeClass) throws ManagedClassError
flushTypeClass
- The managed class to receive
flush notifications for.ManagedClassError
- flushTypeClass
is
not a Managed object.CacheManager.CacheFlusher.setNotifier(com.kabira.platform.flusher.Notifier<?>)
public abstract boolean isFlushable(T flushTarget)
Returning false causes the flush of flushTarget
to be skipped, and flushTarget
to be moved to the
end of the LRU list for objects of that type.
Called from within a transaction.
flushTarget
- The object being flushed.false to retain the object in memory.
CacheManager.CacheFlusher.flush(java.lang.Object)
,
CacheManager.CacheFlusher.setNotifier(com.kabira.platform.flusher.Notifier<?>)