interruptThreads.add(thread);
}
}
//wait for all the consumers to complete any onmessage calls
boolean stuckThreads = !future.await(factory.getCallTimeout());
//if any are stuck then we need to interrupt them
if (stuckThreads)
{
for (Thread interruptThread : interruptThreads)
{