protected class RegionTestCase.TestExpiry extends java.lang.Object implements CustomExpiry, Declarable
| Modifier | Constructor and Description |
|---|---|
protected |
TestExpiry(java.lang.String flagged,
ExpirationAttributes att) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called when the region containing this callback is closed or destroyed, when the cache is
closed, or when a callback is removed from a region using an
AttributesMutator. |
ExpirationAttributes |
getExpiry(Region.Entry entry)
Calculate the expiration for a given entry.
|
void |
init(java.util.Properties props)
Initializes a user-defined object using the given properties.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeprotected TestExpiry(java.lang.String flagged,
ExpirationAttributes att)
public ExpirationAttributes getExpiry(Region.Entry entry)
CustomExpiryThe entry parameter should not be used after this method invocation completes.
getExpiry in interface CustomExpiryentry - the entry to calculate the expiration forpublic void init(java.util.Properties props)
DeclarableCache initialization to fail.init in interface Declarableprops - Contains the parameters declared in the declarative xml file.public void close()
CacheCallbackAttributesMutator.
Implementations should cleanup any external resources such as database connections. Any runtime exceptions this method throws will be logged.
It is possible for this method to be called multiple times on a single callback instance, so implementations must be tolerant of this.
close in interface CacheCallbackRegionService.close(),
Region.close(),
Region.localDestroyRegion(),
Region.destroyRegion(),
AttributesMutator