throw new IllegalStateException("Couldn't finish the globalThreadPool");
}
}
catch (InterruptedException e)
{
throw new HornetQInterruptedException(e);
}
finally
{
globalThreadPool = null;
}
}
if (globalScheduledThreadPool != null)
{
globalScheduledThreadPool.shutdown();
try
{
if (!globalScheduledThreadPool.awaitTermination(10, TimeUnit.SECONDS))
{
throw new IllegalStateException("Couldn't finish the globalScheduledThreadPool");
}
}
catch (InterruptedException e)
{
throw new HornetQInterruptedException(e);
}
finally
{
globalScheduledThreadPool = null;
}