public class LooselyBoundedCacheableAdapter extends Object implements LooselyBoundedCacheable
Constructor and Description |
---|
LooselyBoundedCacheableAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
added(Object id)
Called when an instance is added to the cache.
|
boolean |
canPurge()
Gets whether the item can be purged from the
the BoundedCache.
|
void |
removed(Object id)
Called when an instance is removed to the cache.
|
public boolean canPurge() throws IfsException
The caller of this method indicates a desire to purge the object. The implementation should treat this as a purge request, but can return false if the item should not be purged.
canPurge
in interface LooselyBoundedCacheable
IfsException
- if operation fails.public void added(Object id)
added
in interface LooselyBoundedCacheable
id
- the id used for this entry in the cachepublic void removed(Object id)
removed
in interface LooselyBoundedCacheable
id
- the id used for this entry in the cacheCopyright © 2023. All rights reserved.