Annotation Interface EnableExpiration.ExpirationPolicy
- Enclosing class:
- EnableExpiration
public static @interface EnableExpiration.ExpirationPolicy
Definition for a specific Expiration policy that can be applied to 1 or more
Regions
.
An Expiration policy defines the expiration timeout and expiration action to take when
an Region
entry times out.
Additionally, the Expiration policy defines the algorithm to use (e.g. Idle Timeout (TTI) or Time-To-Live (TTL),
or both) to determine if and when an Region
entry has timed out.-
Required Element Summary
Modifier and TypeRequired ElementDescriptionSpecifies the action taken when aRegion
entry expires.int
Specifies the timeout used to determine when aRegion
entry expires. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionString[]
Names of specificRegions
on which this Expiration policy is applied.Types of Expiration algorithms (Idle Timeout (TTI) or Time to Live (TTL)) configured and used byRegion(s)
to expire entries.
-
Element Details
-
timeout
int timeoutSpecifies the timeout used to determine when aRegion
entry expires. This value of this attribute determines the "default" timeout used if no specific timeout was specified. A specific timeout is determined byExpiration.timeout()
,IdleTimeoutExpiration.timeout()
orTimeToLiveExpiration.timeout()
attribute on the application domain object. See the SDG Reference Guide for more details...- See Also:
-
action
ExpirationActionType actionSpecifies the action taken when aRegion
entry expires. This value of this attribute determines the "default" action taken if no specific action was specified. The specific action is determined byExpiration.action()
,IdleTimeoutExpiration.action()
orTimeToLiveExpiration.action()
attribute on the application domain object. See the SDG Reference Guide for more details...- See Also:
-
-
-
regionNames
String[] regionNamesNames of specificRegions
on which this Expiration policy is applied. If noRegion
names are specified then this Expiration policy will apply to allRegions
declared in the Spring context. Defaults to allRegions
.- Default:
- {}
-
types
EnableExpiration.ExpirationType[] typesTypes of Expiration algorithms (Idle Timeout (TTI) or Time to Live (TTL)) configured and used byRegion(s)
to expire entries. Defaults to Idle Timeout (TTI).- See Also:
- Default:
- {IDLE_TIMEOUT}
-