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 and Description |
---|
ReinsertingReaper() |
Modifier and Type | Method and Description |
---|---|
void |
handleExpiredContainer(Container expiredContainer)
Methode called with a container that has expired before the container is garbage
collected.
|
protected abstract void |
handleExpiredObject(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(Object expiredObject)
expiredObject
- The object that has expired.Copyright © 2014. All rights reserved.