public class SessionCustomExpiry extends Object implements CustomExpiry<String,javax.servlet.http.HttpSession>, Serializable, Declarable
Constructor and Description |
---|
SessionCustomExpiry() |
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 . |
boolean |
equals(Object obj) |
ExpirationAttributes |
getExpiry(Region.Entry<String,javax.servlet.http.HttpSession> entry)
Calculate the expiration for a given entry.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
init, initialize
public ExpirationAttributes getExpiry(Region.Entry<String,javax.servlet.http.HttpSession> entry)
CustomExpiry
The entry parameter should not be used after this method invocation completes.
getExpiry
in interface CustomExpiry<String,javax.servlet.http.HttpSession>
entry
- the entry to calculate the expiration forpublic void close()
CacheCallback
AttributesMutator
.
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 CacheCallback
RegionService.close()
,
Region.close()
,
Region.localDestroyRegion()
,
Region.destroyRegion()
,
AttributesMutator