Reaper
public abstract class ReinsertingReaper extends AbstractReaper
Useful for alerts and announcements. E.g. suppose you're supposed to send someone an update every 15 minutes. Use this one and an object that sends the message inside its "expire" method.
Constructor | Description |
---|---|
ReinsertingReaper() |
Modifier and Type | Method | Description |
---|---|---|
void |
handleExpiredContainer(Container expiredContainer) |
Methode called with a container that has expired before the container is garbage
collected.
|
protected abstract void |
handleExpiredObject(java.lang.Object expiredObject) |
Methode called with an object that has expired before it is garbage collected.
|
getCache, setCache
public final void handleExpiredContainer(Container expiredContainer)
expiredContainer
- The container that has expired.protected abstract void handleExpiredObject(java.lang.Object expiredObject)
expiredObject
- The object that has expired.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com