Package org.apache.geode.modules.util
Class SessionCustomExpiry
java.lang.Object
org.apache.geode.modules.util.SessionCustomExpiry
- All Implemented Interfaces:
Serializable,CacheCallback,CustomExpiry<String,,jakarta.servlet.http.HttpSession> Declarable
public class SessionCustomExpiry
extends Object
implements CustomExpiry<String,jakarta.servlet.http.HttpSession>, Serializable, Declarable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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 anAttributesMutator.booleangetExpiry(Region.Entry<String, jakarta.servlet.http.HttpSession> entry) Calculate the expiration for a given entry.inthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.geode.cache.Declarable
init, initialize
-
Constructor Details
-
SessionCustomExpiry
public SessionCustomExpiry()
-
-
Method Details
-
getExpiry
Description copied from interface:CustomExpiryCalculate the expiration for a given entry. Returning null indicates that the default for the region should be used.The entry parameter should not be used after this method invocation completes.
- Specified by:
getExpiryin interfaceCustomExpiry<String,jakarta.servlet.http.HttpSession> - Parameters:
entry- the entry to calculate the expiration for- Returns:
- the expiration to be used, null if the region's defaults should be used.
-
close
public void close()Description copied from interface:CacheCallbackCalled 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 anAttributesMutator.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.
- Specified by:
closein interfaceCacheCallback- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-