Class WorkersTemplate
- java.lang.Object
-
- io.temporal.spring.boot.autoconfigure.template.WorkersTemplate
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware
public class WorkersTemplate extends java.lang.Object implements org.springframework.beans.factory.BeanFactoryAwareCreates aWorkerFactoryand Workers for a given namespace provided by WorkflowClient.
-
-
Constructor Summary
Constructors Constructor Description WorkersTemplate(TemporalProperties properties, NamespaceProperties namespaceProperties, ClientTemplate clientTemplate, io.opentracing.Tracer tracer, TestWorkflowEnvironmentAdapter testWorkflowEnvironment, TemporalOptionsCustomizer<io.temporal.worker.WorkerFactoryOptions.Builder> workerFactoryCustomizer, TemporalOptionsCustomizer<io.temporal.worker.WorkerOptions.Builder> workerCustomizer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.temporal.worker.WorkerFactorygetWorkerFactory()java.util.Collection<io.temporal.worker.Worker>getWorkers()voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
-
-
-
Constructor Detail
-
WorkersTemplate
public WorkersTemplate(@Nonnull TemporalProperties properties, @Nonnull NamespaceProperties namespaceProperties, @Nullable ClientTemplate clientTemplate, @Nullable io.opentracing.Tracer tracer, @Nullable TestWorkflowEnvironmentAdapter testWorkflowEnvironment, @Nullable TemporalOptionsCustomizer<io.temporal.worker.WorkerFactoryOptions.Builder> workerFactoryCustomizer, @Nullable TemporalOptionsCustomizer<io.temporal.worker.WorkerOptions.Builder> workerCustomizer)
-
-
Method Detail
-
getWorkerFactory
public io.temporal.worker.WorkerFactory getWorkerFactory()
-
getWorkers
public java.util.Collection<io.temporal.worker.Worker> getWorkers()
-
setBeanFactory
public void setBeanFactory(@Nonnull org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException- Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
-