Package io.temporal.spring.boot
Interface TemporalOptionsCustomizer<T>
-
- Type Parameters:
T- Temporal Options Builder to customize. Respected types:WorkflowServiceStubsOptions.Builder,WorkflowClientOptions.Builder,TestEnvironmentOptions.Builder,WorkerOptions.Builder,WorkerFactoryOptions.Builder
- All Known Subinterfaces:
WorkerOptionsCustomizer
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.Only one bean of each generic type can be added to Spring context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tcustomize(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 Detail
-
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.Builderis initialized by the Temporal Spring Boot module, so changes done by this method will override Spring Boot configuration values.- Parameters:
optionsBuilder-*Options.Builderto customize- Returns:
- modified
optionsBuilderor a new builder to be used by the caller code.
-
-