public class IdMapService extends AbstractServiceWithBackgroundCheck implements ResourceChangeListener
CHANGES, PATHS, PROPERTY_NAMES_HINT
Constructor and Description |
---|
IdMapService() |
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
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
|
public static IdMapService testConstructor(DiscoveryLiteConfig commonsConfig, SlingSettingsService settingsService, ResourceResolverFactory resourceResolverFactory)
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 © 2010 - 2020 Adobe. All Rights Reserved