Class FlowConfig.Builder
- Enclosing class:
FlowConfig
FlowConfig values.-
Method Summary
Modifier and TypeMethodDescriptionSets how precisely Dex indexes active Step types for later searches.attributeStoreNames(String... values) Selects Server-configured Attribute Stores for enabled Attribute writes.attributeStoreNames(List<String> value) Selects Server-configured Attribute Stores for enabled Attribute writes.build()Builds immutable Flow configuration from the current values.continueAsNewPageSizeBytes(int value) Sets the history page-size threshold that triggers continue-as-new.continueAsNewThreshold(int value) Sets the history-event threshold that triggers continue-as-new.stepDurability(StepDurability value) Sets the normal default durability for Step methods in this Flow.
-
Method Details
-
activeStepSearchMode
Sets how precisely Dex indexes active Step types for later searches.The selected mode controls updates to the
ActiveStepTypessearch index. Use that index to find running Flows before renaming or removing a Step implementation.- Parameters:
value- the active-Step indexing mode, ornullfor the server default- Returns:
- this builder
-
continueAsNewThreshold
Sets the history-event threshold that triggers continue-as-new.- Parameters:
value- the threshold count- Returns:
- this builder
-
continueAsNewPageSizeBytes
Sets the history page-size threshold that triggers continue-as-new.- Parameters:
value- the page-size threshold in bytes- Returns:
- this builder
-
stepDurability
Sets the normal default durability for Step methods in this Flow.The server default is
StepDurability.SYNC. A method-level setting inStepOptionstakes precedence over this Flow-wide value. Failure policies do not change that ordering or the selected default.- Parameters:
value- the durability mode, ornullfor the server default- Returns:
- this builder
-
attributeStoreNames
Selects Server-configured Attribute Stores for enabled Attribute writes.Each enabled Attribute write is projected to every selected store. An empty list explicitly disables future projections, while omitting this call leaves the current or server-selected values unchanged. Already queued projections retain their original targets.
- Parameters:
value- the Attribute Store names, an empty list to disable future projections, ornullfor the server default- Returns:
- this builder
-
attributeStoreNames
Selects Server-configured Attribute Stores for enabled Attribute writes.This overload is convenient when a Flow uses one or a few stores. Each enabled Attribute write is projected to every supplied store. Calling this method with no names explicitly disables future projections; omitting it leaves the current or server-selected values unchanged. Already queued projections retain their original targets.
FlowConfig config = FlowConfig.newBuilder() .attributeStoreNames("profiles") .build();- Parameters:
values- the Attribute Store names; no names disables future projections- Returns:
- this builder
-
build
Builds immutable Flow configuration from the current values.- Returns:
- the configured Flow settings
-