title: Using Events to pass information between threads
body: <p>Is it possible to use events and event listeners to pass a set of information between two threads in Java? If I simplify my problem to its base, I have a producer and consumer with each one "living" on its own thread. The producer creates messages, and once a message is created it "idealy" would send an event to the consumer. The consumer will be doing many things, but will also be listening for a producer event. This means that the consumer can not be blocked or wait for the producer. </p>
  
  <p>If this is possible, where could I find a generic example to work from?</p>
  
  <p>For more information on the model please see </p>
  
  <p><a href="https://stackoverflow.com/questions/17144317/passing-a-set-of-objects-between-threads">Passing a Set of Objects between threads</a> </p>