public abstract class RefreshingReaper extends AbstractReaper
Note that you must supply the implementation of the refresh method.
Constructor and Description |
---|
RefreshingReaper() |
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 Object |
refresh(Object objectToBeRefreshed)
Function called to attempt to refresh the object.
|
getCache, setCache
public final void handleExpiredContainer(Container expiredContainer)
expiredContainer
- The container that has expired.protected abstract Object refresh(Object objectToBeRefreshed)
objectToBeRefreshed
- The object to be refreshed.Copyright © 2016. All rights reserved.