AI-generated Key Takeaways
-
ObserverSpec.Builder is a builder for ObserverSpec instances.
-
It has a public constructor to create a new Builder.
-
It provides methods to filter schemas that trigger the observer.
-
The build() method constructs the ObserverSpec from the builder's contents.
Builder for ObserverSpec
instances.
Public Constructor Summary
|
Builder()
|
Public Method Summary
| ObserverSpec.Builder |
addFilterSchemas(Collection<String>
schemas)
Restricts an observer using this spec to triggering only for documents of one
of the provided schema types.
|
| ObserverSpec.Builder |
addFilterSchemas(String... schemas)
Restricts an observer using this spec to triggering only for documents of one
of the provided schema types.
|
| ObserverSpec |
build()
Constructs a new
ObserverSpec from the contents of this builder.
|
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public ObserverSpec.Builder addFilterSchemas (Collection<String> schemas)
Restricts an observer using this spec to triggering only for documents of one of the provided schema types.
If unset, the observer will match documents of all types.
public ObserverSpec.Builder addFilterSchemas (String... schemas)
Restricts an observer using this spec to triggering only for documents of one of the provided schema types.
If unset, the observer will match documents of all types.
public ObserverSpec build ()
Constructs a new ObserverSpec
from the contents of this builder.