Class RegexInterest
java.lang.Object
org.springframework.data.gemfire.client.Interest<String>
org.springframework.data.gemfire.client.RegexInterest
- All Implemented Interfaces:
InitializingBean
Cache interest based on regular expression rather then individual key types.
- Author:
- Costin Leau, John Blum
- 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, InterestResultPolicy policy) RegexInterest
(String regex, InterestResultPolicy policy, boolean durable) RegexInterest
(String regex, 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. based on KEY or Regex).void
setType
(Interest.Type type) Set the type of interest registration (e.g. based on KEY or Regex).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
-
RegexInterest
-
RegexInterest
-
RegexInterest
-
RegexInterest
public RegexInterest(String regex, InterestResultPolicy policy, boolean durable, boolean receiveValues)
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- 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:
-
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:
-