Class ThreadRuntimeFactory

java.lang.Object
org.apache.pulsar.functions.runtime.thread.ThreadRuntimeFactory
All Implemented Interfaces:
AutoCloseable, RuntimeFactory

public class ThreadRuntimeFactory extends Object implements RuntimeFactory
Thread based function container factory implementation.
  • Constructor Details

    • ThreadRuntimeFactory

      public ThreadRuntimeFactory(String threadGroupName, String pulsarServiceUrl, String stateStorageImplClass, String storageServiceUrl, org.apache.pulsar.functions.instance.AuthenticationConfig authConfig, org.apache.pulsar.functions.secretsprovider.SecretsProvider secretsProvider, org.apache.pulsar.functions.instance.stats.FunctionCollectorRegistry collectorRegistry, String narExtractionDirectory, ClassLoader rootClassLoader, boolean exposePulsarAdminClientEnabled, String pulsarWebServiceUrl) throws Exception
      This constructor is used by other runtimes (e.g. ProcessRuntime and KubernetesRuntime) that rely on ThreadRuntime to actually run an instance of the function. When used by other runtimes, the arguments such as secretsProvider and rootClassLoader will be provided.
      Throws:
      Exception
  • Method Details