@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 |
|---|---|
List<ObserverConfiguration> |
getObserverConfigurations()
Get the list of observer configurations affecting the provider this
reporter is bound to.
|
void |
reportChanges(Iterable<ResourceChange> changes,
boolean distribute)
A resource provider can inform about a list of changes.
|
void |
reportChanges(ObserverConfiguration config,
Iterable<ResourceChange> changes,
boolean distribute)
A resource provider can inform about a list of changes.
|
@Nonnull List<ObserverConfiguration> getObserverConfigurations()
void reportChanges(@Nonnull
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(@Nonnull
ObserverConfiguration config,
@Nonnull
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 © 2017 The Apache Software Foundation. All rights reserved.