{
// If called from inside onMessage then return immediately - otherwise would block
return;
}
org.hornetq.utils.Future future = new Future();
sessionExecutor.execute(future);
boolean ok = future.await(ClientConsumerImpl.CLOSE_TIMEOUT_MILLISECONDS);
if (!ok)
{
ClientConsumerImpl.log.warn("Executor couldn't finish its operation before timeout : " + sessionExecutor.toString());
ClientConsumerImpl.log.warn("Timed out waiting for handler to complete processing", new Exception ("trace"));