public interface ServerCacheFactory
Defines method for constructing caches for beans and queries.
-
Method Summary
Modifier and TypeMethodDescriptioncreateCache
(ServerCacheConfig config) Create the cache for the given type with options.createCacheNotify
(ServerCacheNotify listener) Return a ServerCacheNotify that we will send ServerCacheNotification events to.default void
visit
(MetricVisitor visitor) Visit the metrics for the cache.
-
Method Details
-
visit
Visit the metrics for the cache. -
createCache
Create the cache for the given type with options. -
createCacheNotify
Return a ServerCacheNotify that we will send ServerCacheNotification events to.This is used if a ServerCacheNotifyPlugin is not supplied.
- Parameters:
listener
- The listener that should be used to process the notification events.
-