title: How to implement one producer , multiple consumers and multiple Objects in Java?
body: <p>I have a question about Producer/consumer Design pattern , in fact my situation is :I have One class that produce multiple types of messages (notifications) and multiple consumers who consume those messages.</p>
  
  <p>The complication is my Producer produce different types of messages and my consumers consume those messages .</p>
  
  <p>So what is the best implementation of this situation? Is the Producer/Consumer design-pattern the best solution of this situation?</p>