Interface WorkflowImplementationOptionsCustomizer
- All Superinterfaces:
TemporalOptionsCustomizer<io.temporal.worker.WorkflowImplementationOptions.Builder>
public interface WorkflowImplementationOptionsCustomizer
extends TemporalOptionsCustomizer<io.temporal.worker.WorkflowImplementationOptions.Builder>
Bean of this class can be added to Spring context to get a fine control over
WorkflowImplementationOptions objects that are created by Temporal Spring Boot Autoconfigure
module.
Only one bean of this or
TemporalOptionsCustomizer<WorkflowImplementationOptions.Builder> type can be added to Spring
context.
-
Method Summary
Modifier and TypeMethodDescriptiondefault io.temporal.worker.WorkflowImplementationOptions.Buildercustomize(io.temporal.worker.WorkflowImplementationOptions.Builder optionsBuilder) This method can modify some fields of the provided builder or create a new builder altogether and return it back to be used.io.temporal.worker.WorkflowImplementationOptions.Buildercustomize(io.temporal.worker.WorkflowImplementationOptions.Builder optionsBuilder, io.temporal.worker.Worker worker, Class<?> clazz, io.temporal.common.metadata.POJOWorkflowMethodMetadata workflowMethod) This method can modify some fields of the providedWorkflowImplementationOptions.Builderor create a new builder altogether and return it back to be used.
-
Method Details
-
customize
@Nonnull default io.temporal.worker.WorkflowImplementationOptions.Builder customize(@Nonnull io.temporal.worker.WorkflowImplementationOptions.Builder optionsBuilder) Description copied from interface:TemporalOptionsCustomizerThis method can modify some fields of the provided builder or create a new builder altogether and return it back to be used. This method is called after the*Options.Builderis initialized by the Temporal Spring Boot module, so changes done by this method will override Spring Boot configuration values.- Specified by:
customizein interfaceTemporalOptionsCustomizer<io.temporal.worker.WorkflowImplementationOptions.Builder>- Parameters:
optionsBuilder-*Options.Builderto customize- Returns:
- modified
optionsBuilderor a new builder to be used by the caller code.
-
customize
@Nonnull io.temporal.worker.WorkflowImplementationOptions.Builder customize(@Nonnull io.temporal.worker.WorkflowImplementationOptions.Builder optionsBuilder, @Nonnull io.temporal.worker.Worker worker, @Nonnull Class<?> clazz, @Nullable io.temporal.common.metadata.POJOWorkflowMethodMetadata workflowMethod) This method can modify some fields of the providedWorkflowImplementationOptions.Builderor create a new builder altogether and return it back to be used. This method is called after theWorkflowImplementationOptions.Builderis initialized by the Temporal Spring Boot module, so changes done by this method will override Spring Boot configuration values.- Parameters:
optionsBuilder-*Options.Builderto customizeworker- the worker that the workflow implementation is being registered to.clazz- the class of the workflow implementation that is being registered.workflowMethod- the metadata of the workflow method on the interface that is being registered. null if the class is aDynamicWorkflow.- Returns:
- modified
optionsBuilderor a new builder instance to be used by the caller code
-