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

public class RegexInterest extends Interest<String>
Cache interest based on regular expression rather then individual key types.
See Also:
  • Constructor Details

    • RegexInterest

      public RegexInterest(String regex)
    • RegexInterest

      public RegexInterest(String regex, org.apache.geode.cache.InterestResultPolicy policy)
    • RegexInterest

      public RegexInterest(String regex, org.apache.geode.cache.InterestResultPolicy policy, boolean durable)
    • RegexInterest

      public RegexInterest(String regex, org.apache.geode.cache.InterestResultPolicy policy, boolean durable, boolean receiveValues)
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Overrides:
      afterPropertiesSet in class Interest<String>
    • getRegex

      public String getRegex()
      Returns the Regular Expression sent to the cache server to express interests in keys matching Regex pattern. Alias for Interest.getKey().
      Returns:
      the Regex pattern used in the interest registration.
      See Also:
      • Region.registerInterestRegex(String)
    • getType

      public Interest.Type getType()
      Description copied from class: Interest
      Returns the type of interest registration (e.g. based on KEY or Regex).
      Overrides:
      getType in class Interest<String>
      Returns:
      a Interest.Type determining the type of interest.
      See Also:
    • setType

      public void setType(Interest.Type type)
      Description copied from class: Interest
      Set the type of interest registration (e.g. based on KEY or Regex).
      Overrides:
      setType in class Interest<String>
      Parameters:
      type - Interest.Type qualifying the type of interest.
      See Also: