Class AsyncProcessorTool
java.lang.Object
org.exoplatform.social.common.service.utils.AsyncProcessorTool
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprocess(AsyncProcessor processor, ProcessContext processContext) Calls the async of the processor's process method and waits for it to complete before returning.
-
Constructor Details
-
AsyncProcessorTool
public AsyncProcessorTool()
-
-
Method Details
-
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
-