org.exoplatform.social.common.service.utils
Class AsyncProcessorTool

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

public class AsyncProcessorTool
extends Object


Constructor Summary
AsyncProcessorTool()
           
 
Method Summary
static void process(AsyncProcessor processor, ProcessContext processContext)
          Calls the async of the processor's process method and waits for it to complete before returning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncProcessorTool

public AsyncProcessorTool()
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 by AsyncProcessor objects to implement their sync version of the process method.

Parameters:
processor - the processor
exchange - the exchange
Throws:
Exception - can be thrown if waiting is interrupted


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.