Package com.gigaspaces.internal.query
Class RegexCache
java.lang.Object
com.gigaspaces.internal.query.RegexCache
Holds a cache of already compiled regular expressions.
- Since:
- 6.1
- Author:
- Guy Korland
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPattern(String string_exp) Gets a compiled regular expression from cache, or save a new one.
-
Constructor Details
-
RegexCache
-
RegexCache
public RegexCache()
-
-
Method Details
-
getPattern
Gets a compiled regular expression from cache, or save a new one. If the cache size is increased behind the _cacheSize, the first one is cleaned in a FIFO way.- Throws:
PatternSyntaxException
-