ObserverSpec.Builder
class ObserverSpec.Builder
Builder for ObserverSpec instances.
Summary
Public constructors |
|---|
Builder() |
Public functions |
|
|---|---|
ObserverSpec.Builder |
addFilterDocumentClasses(documentClasses: Array<Class<Any!>!>)Restricts an observer using this spec to triggering only for documents of one of the provided document classes. |
ObserverSpec.Builder |
addFilterDocumentClasses(Restricts an observer using this spec to triggering only for documents of one of the provided document classes. |
ObserverSpec.Builder |
addFilterSchemas(schemas: Array<String!>)Restricts an observer using this spec to triggering only for documents of one of the provided schema types. |
ObserverSpec.Builder |
addFilterSchemas(schemas: (Mutable)Collection<String!>)Restricts an observer using this spec to triggering only for documents of one of the provided schema types. |
ObserverSpec |
build()Constructs a new |
Public constructors
Public functions
addFilterDocumentClasses
fun addFilterDocumentClasses(documentClasses: Array<Class<Any!>!>): ObserverSpec.Builder
Restricts an observer using this spec to triggering only for documents of one of the provided document classes.
If unset, the observer will match documents of all types.
Merged list available from getFilterSchemas.
addFilterDocumentClasses
fun addFilterDocumentClasses(
documentClasses: (Mutable)Collection<Class<Any!>!>
): ObserverSpec.Builder
Restricts an observer using this spec to triggering only for documents of one of the provided document classes.
If unset, the observer will match documents of all types.
Merged list available from getFilterSchemas.
| Parameters | |
|---|---|
documentClasses: (Mutable)Collection<Class<Any!>!> |
classes annotated with |
addFilterSchemas
fun addFilterSchemas(schemas: Array<String!>): ObserverSpec.Builder
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.
addFilterSchemas
fun addFilterSchemas(schemas: (Mutable)Collection<String!>): ObserverSpec.Builder
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.
build
fun build(): ObserverSpec
Constructs a new ObserverSpec from the contents of this builder.