Package com.adobe.acs.commons.fam
Interface ActionManagerFactory
- All Superinterfaces:
ActionManagerMBean
-
Method Summary
Modifier and TypeMethodDescriptioncreateTaskManager(String name, org.apache.sling.api.resource.ResourceResolver resourceResolver, int saveInterval) Creates an ActionManager instead with the provided name and JCR context provided bu the resourceResolver.createTaskManager(String name, org.apache.sling.api.resource.ResourceResolver resourceResolver, int saveInterval, int priority) Creates an ActionManager instead with the provided name and JCR context provided bu the resourceResolver.getActionManager(String name) Gets the named ActionManager from the ActionManagerFactory.booleanhasActionManager(String name) Checks if the ActionManagerFactory has a registered ActionManager with the provided name.voidpurge(ActionManager manager) Remove a specific manager by its object referenceMethods inherited from interface com.adobe.acs.commons.fam.mbean.ActionManagerMBean
getFailures, getStatistics, purgeCompletedTasks
-
Method Details
-
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 performsaveInterval- 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 performsaveInterval- 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
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
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
Remove a specific manager by its object reference- Parameters:
manager-
-