synchronized (consumer)
{
if (System.currentTimeMillis() - consumer.getLastPingTime() > subscription.getTimeout())
{
HornetQRestLogger.LOGGER.shutdownRestSubscription(consumer.getId());
consumer.shutdown();
queueConsumers.remove(consumer.getId());
serviceManager.getTimeoutTask().remove(consumer.getId());
if (subscription.isDeleteWhenIdle()) deleteSubscriberQueue(consumer);
}
}