Interface AuxiliaryCacheFactory

All Known Implementing Classes:
AbstractAuxiliaryCacheFactory, BlockDiskCacheFactory, HSQLDiskCacheFactory, IndexedDiskCacheFactory, JDBCDiskCacheFactory, LateralTCPCacheFactory, MySQLDiskCacheFactory, RemoteCacheFactory, RemoteHttpCacheFactory

public interface AuxiliaryCacheFactory
All auxiliary caches must have a factory that the cache configurator can use to create instances.
  • Method Details

    • createCache

      <K, V> AuxiliaryCache<K,V> createCache(AuxiliaryCacheAttributes attr, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer) throws Exception
      Creates an auxiliary using the supplied attributes. Adds it to the composite cache manager.
      Parameters:
      attr -
      cacheMgr - This allows auxiliaries to reference the manager without assuming that it is a singleton. This will allow JCS to be a non-singleton. Also, it makes it easier to test.
      cacheEventLogger -
      elementSerializer -
      Returns:
      AuxiliaryCache
      Throws:
      Exception - if cache instance could not be created
    • initialize

      default void initialize()
      Initialize this factory
    • dispose

      default void dispose()
      Dispose of this factory, clean up shared resources
    • setName

      void setName(String s)
      Sets the name attribute of the AuxiliaryCacheFactory object
      Parameters:
      s - The new name value
    • getName

      Gets the name attribute of the AuxiliaryCacheFactory object
      Returns:
      The name value