# Uses of Class
org.apache.sling.discovery.base.connectors.announcement.Announcement

Packages that use Announcement
Package
Description
org.apache.sling.discovery.base.connectors.announcement
Provides topology announcement implementations for discovery implementors that choose to extend from discovery.base

## Uses of Announcement in org.apache.sling.discovery.base.connectors.announcement

Methods in org.apache.sling.discovery.base.connectors.announcement that return Announcement
Modifier and Type
Method
Description
`static Announcement`
Announcement.`fromJSON(String topologyAnnouncementJSON)`
Create an announcement form json
`final Announcement`
CachedAnnouncement.`getAnnouncement()`
Methods in org.apache.sling.discovery.base.connectors.announcement that return types with arguments of type Announcement
Modifier and Type
Method
Description
`Collection<Announcement>`
AnnouncementRegistry.`listAnnouncementsInSameCluster(org.apache.sling.discovery.ClusterView localClusterView)`
list all announcements that were received by instances in the local cluster
`Collection<Announcement>`
AnnouncementRegistryImpl.`listAnnouncementsInSameCluster(org.apache.sling.discovery.ClusterView localClusterView)`
`Collection<Announcement>`
AnnouncementRegistry.`listLocalAnnouncements()`
list all announcements that were received (incoming or inherited) by this instance
`Collection<Announcement>`
AnnouncementRegistryImpl.`listLocalAnnouncements()`
Methods in org.apache.sling.discovery.base.connectors.announcement with parameters of type Announcement
Modifier and Type
Method
Description
`boolean`
AnnouncementFilter.`accept(String receivingSlingId, Announcement announcement)`
Check if the provided announcement, which was received by the provided slingId can be accepted or not.
`void`
AnnouncementRegistry.`addAllExcept(Announcement target, org.apache.sling.discovery.ClusterView localClusterView, AnnouncementFilter filter)`
Add all registered announcements to the given target announcement that are accepted by the given filter
`void`
AnnouncementRegistryImpl.`addAllExcept(Announcement target, org.apache.sling.discovery.ClusterView clusterView, AnnouncementFilter filter)`
`void`
Announcement.`addIncomingTopologyAnnouncement(Announcement incomingTopologyAnnouncement)`
adds an incoming announcement to this announcement
`boolean`
Announcement.`correspondsTo(Announcement announcement)`
Compare this Announcement with another one, ignoring the 'created' property - which gets added to the JSON object automatically due to SLING-3389 wire-backwards-compatibility - and backoffInterval introduced as part of SLING-3382
`long`
AnnouncementRegistry.`registerAnnouncement(Announcement topologyAnnouncement)`
Register the given announcement - and returns the backoff interval (in seconds) for stable connectors - or -1 if the registration was not successful (likely indicating a loop)
`long`
AnnouncementRegistryImpl.`registerAnnouncement(Announcement topologyAnnouncement)`
`void`
Announcement.`registerPing(Announcement incomingAnnouncement)`