java.lang.Object
io.ebean.hazelcast.HzCachePlugin
- All Implemented Interfaces:
io.ebean.cache.ServerCachePlugin
Creates the Hazelcast ServerCacheFactory implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.ebean.cache.ServerCacheFactorycreate(io.ebean.DatabaseBuilder config, io.ebean.BackgroundExecutor executor) Create and return the Hazelcast ServerCacheFactory implementation.
-
Constructor Details
-
HzCachePlugin
public HzCachePlugin()
-
-
Method Details
-
create
public io.ebean.cache.ServerCacheFactory create(io.ebean.DatabaseBuilder config, io.ebean.BackgroundExecutor executor) Create and return the Hazelcast ServerCacheFactory implementation.This is called before the EbeanServer instance is created. The factory is used to create the ServerCache instances while the EbeanServer instance is being defined.
- Specified by:
createin interfaceio.ebean.cache.ServerCachePlugin- Parameters:
config- The configuration used when constructing the EbeanServer instance.executor- The background executor service that can be used if needed.- Returns:
- The server cache factory used to create the L2 caches.
-