@ProviderType public interface ObservationReporter
ResourceProvider
must use an observation reporter
to report changes to resources. The resource provider gets
an instance of this reporter through the ProviderContext
.Modifier and Type | Method and Description |
---|---|
@NotNull java.util.List<ObserverConfiguration> |
getObserverConfigurations()
Get the list of observer configurations affecting the provider this
reporter is bound to.
|
void |
reportChanges(@NotNull java.lang.Iterable<ResourceChange> changes,
boolean distribute)
A resource provider can inform about a list of changes.
|
void |
reportChanges(@NotNull ObserverConfiguration config,
@NotNull java.lang.Iterable<ResourceChange> changes,
boolean distribute)
A resource provider can inform about a list of changes.
|
@NotNull @NotNull java.util.List<ObserverConfiguration> getObserverConfigurations()
void reportChanges(@NotNull @NotNull java.lang.Iterable<ResourceChange> changes, boolean distribute)
reportChanges(ObserverConfiguration, Iterable, boolean)
must be used instead.changes
- The list of changes.distribute
- Whether the changes should be distributed to other instances.void reportChanges(@NotNull @NotNull ObserverConfiguration config, @NotNull @NotNull java.lang.Iterable<ResourceChange> changes, boolean distribute)
reportChanges(Iterable, boolean)
must be used to
report changes across all observer configurations. However, if the implementation is
using a mechanism per observation configuration this method must be used instead.config
- The configuration the change belongs tochanges
- The list of changes.distribute
- Whether the changes should be distributed to other instances.Copyright © 2010 - 2020 Adobe. All Rights Reserved