Class ElasticSearchPersistenceServiceImpl.InClassLoaderExecute<T>

java.lang.Object
org.apache.unomi.persistence.elasticsearch.ElasticSearchPersistenceServiceImpl.InClassLoaderExecute<T>
Enclosing class:
ElasticSearchPersistenceServiceImpl

public abstract static class ElasticSearchPersistenceServiceImpl.InClassLoaderExecute<T> extends Object
  • Constructor Details

    • InClassLoaderExecute

      public InClassLoaderExecute(MetricsService metricsService, String timerName, org.osgi.framework.BundleContext bundleContext, String[] fatalIllegalStateErrors, boolean throwExceptions)
  • Method Details

    • execute

      protected abstract T execute(Object... args) throws Exception
      Throws:
      Exception
    • executeInClassLoader

      public T executeInClassLoader(Object... args) throws Exception
      Throws:
      Exception
    • catchingExecuteInClassLoader

      public T catchingExecuteInClassLoader(boolean logError, Object... args)