Class SimpleTaskExecutor
- java.lang.Object
-
- org.forgerock.openam.sm.datalayer.impl.SimpleTaskExecutor
-
- All Implemented Interfaces:
TaskExecutor
public class SimpleTaskExecutor extends Object implements TaskExecutor
A simple TaskExecutor that simply executes a task.
-
-
Constructor Summary
Constructors Constructor Description SimpleTaskExecutor(Debug debug, TokenStorageAdapter adapter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(String tokenId, Task task)The simple executor that executes a task.protected voidfinalize()voidstart()If the executor needs to do anything to start up it should be done here.
-
-
-
Constructor Detail
-
SimpleTaskExecutor
@Inject public SimpleTaskExecutor(@Named("tokenDataLayer") Debug debug, TokenStorageAdapter adapter)
-
-
Method Detail
-
start
public void start() throws DataLayerExceptionDescription copied from interface:TaskExecutorIf the executor needs to do anything to start up it should be done here. Clients should call this method after obtaining a reference to the executor.- Specified by:
startin interfaceTaskExecutor- Throws:
DataLayerException
-
finalize
protected void finalize() throws Throwable
-
execute
public void execute(String tokenId, Task task)
The simple executor that executes a task. TokenId is unused in this implementation.- Specified by:
executein interfaceTaskExecutor- Parameters:
tokenId- The token the task is in reference to. May be null in the case of query.task- The task to be executed.
-
-