Package io.ebean.cache
Interface ServerCacheFactory
-
public interface ServerCacheFactory
Defines method for constructing caches for beans and queries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ServerCache
createCache(ServerCacheConfig config)
Create the cache for the given type with options.ServerCacheNotify
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 Detail
-
visit
default void visit(MetricVisitor visitor)
Visit the metrics for the cache.
-
createCache
ServerCache createCache(ServerCacheConfig config)
Create the cache for the given type with options.
-
createCacheNotify
ServerCacheNotify createCacheNotify(ServerCacheNotify listener)
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.
-
-