Pregunta de entrevista de Capgemini

How do you filter out messages from a queue?