Interface PreparedQueryCache.Exclusion
- All Known Implementing Classes:
PreparedQueryCacheImpl.StrongExclusion, PreparedQueryCacheImpl.WeakExclusion
- Enclosing interface:
PreparedQueryCache
public static interface PreparedQueryCache.Exclusion
A structure to describe the strength and reason for excluding a query from the cache.
- Since:
- 2.0.0
- Author:
- Pinaki Poddar
-
Method Summary
Modifier and TypeMethodDescriptionThe pattern (either the exact query string or a regular expression) that denotes this exclusion.Gets the human-readable reason for excluding this query from being cached.booleanisStrong()Affirms if this exclusion is strong i.e. can never be reversed.booleanAffirms if this exclusion matches the given identifier.
-
Method Details
-
isStrong
boolean isStrong()Affirms if this exclusion is strong i.e. can never be reversed. -
getReason
String getReason()Gets the human-readable reason for excluding this query from being cached. -
getPattern
String getPattern()The pattern (either the exact query string or a regular expression) that denotes this exclusion. -
matches
Affirms if this exclusion matches the given identifier.
-