Interface ActionManagerFactory

    • Method Detail

      • createTaskManager

        ActionManager createTaskManager​(String name,
                                        org.apache.sling.api.resource.ResourceResolver resourceResolver,
                                        int saveInterval)
                                 throws org.apache.sling.api.resource.LoginException
        Creates an ActionManager instead with the provided name and JCR context provided bu the resourceResolver.
        Parameters:
        name - the name of the ActionManager. This method guarantee uniqueness of the action manager name.
        resourceResolver - the resourceResolver used to perform
        saveInterval - the number of changed that must incur on the resourceResolver before commit() is called (in support of batch saves)
        Returns:
        the created ActionManager
        Throws:
        org.apache.sling.api.resource.LoginException
      • createTaskManager

        ActionManager createTaskManager​(String name,
                                        org.apache.sling.api.resource.ResourceResolver resourceResolver,
                                        int saveInterval,
                                        int priority)
                                 throws org.apache.sling.api.resource.LoginException
        Creates an ActionManager instead with the provided name and JCR context provided bu the resourceResolver.
        Parameters:
        name - the name of the ActionManager. This method guarantee uniqueness of the action manager name.
        resourceResolver - the resourceResolver used to perform
        saveInterval - the number of changed that must incur on the resourceResolver before commit() is called (in support of batch saves)
        priority - the priority of execution for the tasks in this action manager
        Returns:
        the created ActionManager
        Throws:
        org.apache.sling.api.resource.LoginException
      • getActionManager

        ActionManager getActionManager​(String name)
        Gets the named ActionManager from the ActionManagerFactory. The name corresponds to the name provided in ActionManagerFactory.createTaskManager(..)
        Parameters:
        name - the name of the ActionManager to get
        Returns:
        the ActionManager
      • hasActionManager

        boolean hasActionManager​(String name)
        Checks if the ActionManagerFactory has a registered ActionManager with the provided name.
        Parameters:
        name - the ActionManager name
        Returns:
        true if an ActionManager is registered w the provided name, false otherwise.
      • purge

        void purge​(ActionManager manager)
        Remove a specific manager by its object reference
        Parameters:
        manager -