Class RegexInterest
java.lang.Object
org.springframework.data.gemfire.client.Interest<String>
org.springframework.data.gemfire.client.RegexInterest
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
Cache interest based on regular expression rather then individual key types.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.client.Interest
Interest.Type
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.client.Interest
ALL_KEYS, DEFAULT_DURABLE, DEFAULT_RECEIVE_VALUES, logger
-
Constructor Summary
ConstructorDescriptionRegexInterest
(String regex) RegexInterest
(String regex, org.apache.geode.cache.InterestResultPolicy policy) RegexInterest
(String regex, org.apache.geode.cache.InterestResultPolicy policy, boolean durable) RegexInterest
(String regex, org.apache.geode.cache.InterestResultPolicy policy, boolean durable, boolean receiveValues) -
Method Summary
Modifier and TypeMethodDescriptionvoid
getRegex()
Returns the Regular Expression sent to the cache server to express interests in keys matching Regex pattern.getType()
Returns the type of interest registration (e.g.void
setType
(Interest.Type type) Set the type of interest registration (e.g.Methods inherited from class org.springframework.data.gemfire.client.Interest
asType, containsNonAlphaNumericWhitespace, getKey, getPolicy, isAlphaNumericWhitespace, isDurable, isKeyType, isNotAlphaNumericWhitespace, isReceiveValues, isRegexType, isRegularExpression, isRegularExpression, makeDurable, newInterest, receivesValues, resolveType, setDurable, setKey, setPolicy, setReceiveValues, toString, usingPolicy, withKey
-
Constructor Details
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in classInterest<String>
-
getRegex
Returns the Regular Expression sent to the cache server to express interests in keys matching Regex pattern. Alias forInterest.getKey()
.- Returns:
- the Regex pattern used in the interest registration.
- See Also:
-
Region.registerInterestRegex(String)
-
getType
Description copied from class:Interest
Returns the type of interest registration (e.g. based on KEY or Regex).- Overrides:
getType
in classInterest<String>
- Returns:
- a
Interest.Type
determining the type of interest. - See Also:
-
setType
Description copied from class:Interest
Set the type of interest registration (e.g. based on KEY or Regex).- Overrides:
setType
in classInterest<String>
- Parameters:
type
-Interest.Type
qualifying the type of interest.- See Also:
-