Package com.identityworksllc.iiq.common
Class TaskUtil
- java.lang.Object
-
- com.identityworksllc.iiq.common.TaskUtil
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TaskUtil.TaskResultConsumer
The interface used for lock-and-callback utilities
-
Constructor Summary
Constructors Constructor Description TaskUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
withLockedMasterResult(sailpoint.task.TaskMonitor monitor, TaskUtil.TaskResultConsumer consumer)
Executes the given action with a locked master resultstatic void
withLockedPartitionResult(sailpoint.task.TaskMonitor monitor, TaskUtil.TaskResultConsumer consumer)
Executes the given action with a locked partition result
-
-
-
Constructor Detail
-
TaskUtil
public TaskUtil()
-
-
Method Detail
-
withLockedMasterResult
public static void withLockedMasterResult(sailpoint.task.TaskMonitor monitor, TaskUtil.TaskResultConsumer consumer) throws sailpoint.tools.GeneralException
Executes the given action with a locked master result- Parameters:
monitor
- The TaskMonitor used to retrieve the locked resultconsumer
- An action to run against the locked partition result- Throws:
sailpoint.tools.GeneralException
- if anything fails
-
withLockedPartitionResult
public static void withLockedPartitionResult(sailpoint.task.TaskMonitor monitor, TaskUtil.TaskResultConsumer consumer) throws sailpoint.tools.GeneralException
Executes the given action with a locked partition result- Parameters:
monitor
- The TaskMonitor used to retrieve the locked resultconsumer
- An action to run against the locked partition result- Throws:
sailpoint.tools.GeneralException
- if anything fails
-
-