Interface TemporalOptionsCustomizer<T>

Type Parameters:
T - Temporal Options Builder to customize. Respected types: WorkflowServiceStubsOptions.Builder, WorkflowClientOptions.Builder, TestEnvironmentOptions.Builder, WorkerOptions.Builder, WorkerFactoryOptions.Builder, WorkflowImplementationOptions.Builder
All Known Subinterfaces:
WorkerOptionsCustomizer, WorkflowImplementationOptionsCustomizer

public interface TemporalOptionsCustomizer<T>
Beans of this class can be added to Spring context to get a fine control over *Options objects that are created by Temporal Spring Boot Autoconfigure module.

Multiple beans of each generic type can be added to Spring context. They will be ordered, taking into account Ordered and @Order values of the target

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    customize(T optionsBuilder)
    This method can modify some fields of the provided builder or create a new builder altogether and return it back to be used.
  • Method Details

    • customize

      @Nonnull T customize(@Nonnull T optionsBuilder)
      This 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.Builder is initialized by the Temporal Spring Boot module, so changes done by this method will override Spring Boot configuration values.
      Parameters:
      optionsBuilder - *Options.Builder to customize
      Returns:
      modified optionsBuilder or a new builder to be used by the caller code.