Package | Description |
---|---|
org.apache.sling.discovery.commons |
Provides commons utility for users for the Discovery API.
|
Modifier and Type | Method and Description |
---|---|
@NotNull InstancesDiff.InstanceCollection |
InstancesDiff.added()
Returns the
InstanceCollection collection containing the InstanceDescription instances that are
contained in the new collection but not in the old collection. |
@NotNull InstancesDiff.InstanceCollection |
InstancesDiff.all(boolean retainFromNewCollection)
Returns the
InstanceSet set containing the InstanceDescription instances that are
contained in either the old or the new collection. |
@NotNull InstancesDiff.InstanceCollection |
InstancesDiff.InstanceCollection.filterWith(@Nullable InstanceFilter filter)
Filter the instances with a custom
InstanceFilter filter. |
@NotNull InstancesDiff.InstanceCollection |
InstancesDiff.InstanceCollection.isInClusterView(@Nullable ClusterView clusterView)
Keep only the instances that are contained in the same
ClusterView cluster view
as the one provided. |
@NotNull InstancesDiff.InstanceCollection |
InstancesDiff.InstanceCollection.isLeader()
Keep only the leader instances (see
InstanceDescription.isLeader() . |
@NotNull InstancesDiff.InstanceCollection |
InstancesDiff.InstanceCollection.isLocal()
Keep only the local instance (see
InstanceDescription.isLocal() . |
@NotNull InstancesDiff.InstanceCollection |
InstancesDiff.InstanceCollection.isNotInClusterView(@Nullable ClusterView clusterView)
Filter out the instances that are contained in the same
ClusterView cluster view
as the one provided. |
@NotNull InstancesDiff.InstanceCollection |
InstancesDiff.InstanceCollection.isNotLeader()
Filter out the leader instances (see
InstanceDescription.isLeader() . |
@NotNull InstancesDiff.InstanceCollection |
InstancesDiff.InstanceCollection.isNotLocal()
Filter out the local instances (see
InstanceDescription.isLocal() . |
@NotNull InstancesDiff.InstanceCollection |
InstancesDiff.removed()
Returns the
InstanceCollection collection containing the InstanceDescription instances that are
contained in the old collection but not in the new collection. |
@NotNull InstancesDiff.InstanceCollection |
InstancesDiff.retained(boolean retainFromNewCollection)
Returns the
InstanceSet collection containing the InstanceDescription instances that are
contained in both the old collection and the new collection. |
@NotNull InstancesDiff.InstanceCollection |
InstancesDiff.retained(boolean retainFromNewCollection,
boolean propertyChanged)
Returns the
InstanceCollection collection containing the InstanceDescription instances that are
contained in both the old and the new collections. |
Copyright © 2022 The Apache Software Foundation. All rights reserved.