in src/main/java/org/apache/sling/auth/core/impl/AuthenticationRequirementsManager.java [236:250]
private void queue(final long id, final Action action) {
logger.debug("Queuing action for service {} : {}", id, action);
synchronized ( this.processingQueue ) {
if ( id == CLEAR ) {
this.processingQueue.clear();
} else if ( id == UPDATE ) {
for(final Long updateId: this.props.keySet()) {
this.processingQueue.putIfAbsent(updateId, new Action(ActionType.UPDATE, null));
}
} else {
this.processingQueue.remove(id);
this.processingQueue.put(id, action);
}
}
}