Class HzCachePlugin

java.lang.Object
io.ebean.hazelcast.HzCachePlugin
All Implemented Interfaces:
io.ebean.cache.ServerCachePlugin

public final class HzCachePlugin extends Object implements io.ebean.cache.ServerCachePlugin
Creates the Hazelcast ServerCacheFactory implementation.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.ebean.cache.ServerCacheFactory
    create(io.ebean.DatabaseBuilder config, io.ebean.BackgroundExecutor executor)
    Create and return the Hazelcast ServerCacheFactory implementation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      create in interface io.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.