public class IdMapService extends AbstractServiceWithBackgroundCheck implements ResourceChangeListener
backgroundCheckRunnable, logger
CHANGE_ADDED, CHANGE_CHANGED, CHANGE_PROVIDER_ADDED, CHANGE_PROVIDER_REMOVED, CHANGE_REMOVED, CHANGES, PATHS, PROPERTY_NAMES_HINT
Constructor and Description |
---|
IdMapService() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.framework.BundleContext bundleContext) |
void |
clearCache() |
protected void |
deactivate() |
long |
getMyId() |
boolean |
isInitialized() |
void |
onChange(java.util.List<ResourceChange> changes)
Report resource changes based on the filter properties of this listener.
|
static IdMapService |
testConstructor(DiscoveryLiteConfig commonsConfig,
SlingSettingsService settingsService,
ResourceResolverFactory resourceResolverFactory)
test-only constructor
|
java.lang.String |
toSlingId(int clusterNodeId,
ResourceResolver resourceResolver) |
boolean |
waitForInit(long timeout)
for testing only
|
cancelPreviousBackgroundCheck, startBackgroundCheck, triggerBackgroundCheck
public static IdMapService testConstructor(DiscoveryLiteConfig commonsConfig, SlingSettingsService settingsService, ResourceResolverFactory resourceResolverFactory)
protected void activate(org.osgi.framework.BundleContext bundleContext)
protected void deactivate()
public long getMyId()
public boolean waitForInit(long timeout)
public boolean isInitialized()
public void clearCache()
public java.lang.String toSlingId(int clusterNodeId, ResourceResolver resourceResolver) throws PersistenceException
PersistenceException
public void onChange(java.util.List<ResourceChange> changes)
ResourceChangeListener
Starting with version 1.2 of this API, an instance of ResoureChangeList
is passed
as the parameter to allow passing additional information.
onChange
in interface ResourceChangeListener
changes
- The changes list. This list is immutable.Copyright © 2022 The Apache Software Foundation. All rights reserved.