Class AsyncProcessorTool
- java.lang.Object
-
- org.exoplatform.social.common.service.utils.AsyncProcessorTool
-
public class AsyncProcessorTool extends Object
-
-
Constructor Summary
Constructors Constructor Description AsyncProcessorTool()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidprocess(AsyncProcessor processor, ProcessContext processContext)Calls the async of the processor's process method and waits for it to complete before returning.
-
-
-
Method Detail
-
process
public static void process(AsyncProcessor processor, ProcessContext processContext) throws Exception
Calls the async of the processor's process method and waits for it to complete before returning. This can be used byAsyncProcessorobjects to implement their sync version of the process method.- Parameters:
processor- the processorprocessContext- the context- Throws:
Exception- can be thrown if waiting is interrupted
-
-