Class ResourceQueueCleanupTask

  • All Implemented Interfaces:
    Runnable

    public class ResourceQueueCleanupTask
    extends Object
    implements Runnable
    • Constructor Detail

      • ResourceQueueCleanupTask

        public ResourceQueueCleanupTask​(org.apache.sling.api.resource.ResourceResolverFactory resolverFactory,
                                        String serviceName,
                                        String rootPath)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
      • removeEmptyFolders

        public void removeEmptyFolders​(org.apache.sling.api.resource.Resource root)
                                throws org.apache.sling.api.resource.PersistenceException
        Throws:
        org.apache.sling.api.resource.PersistenceException