I want to implement a spark job in scala, that reads a rabbitmq topic periodically( every day ). Is there a way to read all message from Rabbitmq, than stop consuming. I wou