Class AbstractCachingCamelCatalog

java.lang.Object
org.apache.camel.catalog.impl.AbstractCamelCatalog
org.apache.camel.catalog.impl.AbstractCachingCamelCatalog
Direct Known Subclasses:
DefaultRuntimeCamelCatalog

public abstract class AbstractCachingCamelCatalog extends AbstractCamelCatalog
  • Constructor Details

    • AbstractCachingCamelCatalog

      protected AbstractCachingCamelCatalog()
      Creates the AbstractCachingCamelCatalog without caching enabled.
    • AbstractCachingCamelCatalog

      protected AbstractCachingCamelCatalog(boolean caching)
      Parameters:
      caching - whether to use cache
  • Method Details

    • isCaching

      public boolean isCaching()
      To turn caching on or off
    • setCaching

      public void setCaching(boolean caching)
      To turn caching on or off
    • getCache

      protected Map<String,Object> getCache()
    • clearCache

      protected void clearCache()
    • cache

      protected <T> T cache(String key, String name, Function<String,T> loader)
    • cache

      protected <T> T cache(String name, Function<String,T> loader)
    • cache

      protected <T> T cache(String name, Supplier<T> loader)
    • doGetCache

      protected <T> T doGetCache(String key, String name, Function<String,T> loader)