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.