Class DefaultCacheFactory

  • All Implemented Interfaces:
    CacheFactory

    public class DefaultCacheFactory
    extends java.lang.Object
    implements CacheFactory

    Provides the default cache implementation for the deployment caches see DeploymentCache.

    Author:
    Johannes Heinemann
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> org.camunda.commons.utils.cache.Cache<java.lang.String,​T> createCache​(int maxNumberOfElementsInCache)
      Creates a cache that does not exceed a specified number of elements.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultCacheFactory

        public DefaultCacheFactory()
    • Method Detail

      • createCache

        public <T> org.camunda.commons.utils.cache.Cache<java.lang.String,​T> createCache​(int maxNumberOfElementsInCache)
        Description copied from interface: CacheFactory
        Creates a cache that does not exceed a specified number of elements.
        Specified by:
        createCache in interface CacheFactory
        Parameters:
        maxNumberOfElementsInCache - The maximum number of elements that is allowed within the cache at the same time.
        Returns:
        The cache to be created.