Class AsyncProcessorTool

java.lang.Object
org.exoplatform.social.common.service.utils.AsyncProcessorTool

public class AsyncProcessorTool extends Object
  • 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 by AsyncProcessor objects to implement their sync version of the process method.
      Parameters:
      processor - the processor
      processContext - the context
      Throws:
      Exception - can be thrown if waiting is interrupted