The FilterManager type exposes the following members.

Constructors

  NameDescription
Protected methodFilterManager
Sets up the FilterManager singleton.

Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetFilter
Returns the cached version of the filter. Allows the caller to pass up a small filter but this will keep a persistent version around and allow the caching filter to do its job.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberGetInstance
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetCacheSize
Sets the max size that cache should reach before it is cleaned up
Public methodSetCleanThreadSleepTime
Sets the cache cleaning frequency in milliseconds.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
Protected fieldcache
The cache itself
Protected fieldcacheCleanSize
Maximum allowed cache size
Protected fieldcleanSleepTime
Cache cleaning frequency
Protected fieldStatic memberDEFAULT_CACHE_CLEAN_SIZE
The default maximum number of Filters in the cache
Protected fieldStatic memberDEFAULT_CACHE_SLEEP_TIME
The default frequency of cache clenup
Protected fieldfilterCleaner
Cache cleaner that runs in a separate thread
Protected fieldStatic membermanager

See Also