flushExecutor();
}
public boolean flushExecutor()
{
Future future = new Future();
getExecutor().execute(future);
boolean ok = future.await(10000);
if (!ok)
{
log.warn("Couldn't finish waiting executors. Try increasing the thread pool size", new Exception ("trace"));
}