@ProviderType
public interface ProviderContext
Modifier and Type | Field and Description |
---|---|
static long |
EXCLUDED_PATHS_CHANGED
This bit is set in
ResourceProvider.update(long) if exclude paths changed. |
static long |
OBSERVATION_LISTENER_CHANGED
This bit is set in
ResourceProvider.update(long) if observation listeners changed. |
Modifier and Type | Method and Description |
---|---|
PathSet |
getExcludedPaths()
Set of paths which are "hidden" by other resource providers.
|
@NotNull ObservationReporter |
getObservationReporter()
Get the observation reporter for this instance.
|
static final long OBSERVATION_LISTENER_CHANGED
ResourceProvider.update(long)
if observation listeners changed.static final long EXCLUDED_PATHS_CHANGED
ResourceProvider.update(long)
if exclude paths changed.@NotNull @NotNull ObservationReporter getObservationReporter()
ResourceProvider.update(long)
is called. From that point on
this method needs to be called to get the updated/new observation
reporter. The instance previously returned (before update was called)
becomes invalid and must not be used anymore.PathSet getExcludedPaths()
ResourceProvider.update(long)
is called. From that point on
this method will return a new path set with the updated/changed
exclude paths.Copyright © 2018 The Apache Software Foundation. All rights reserved.