You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

QueueFactory.java 743B

12345678910111213141516171819202122232425262728
  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package com.dmdirc.parser.irc.outputqueue;
  6. import java.io.PrintWriter;
  7. import java.util.concurrent.BlockingQueue;
  8. /**
  9. * A QueueFactory produces QueueHandlers for OutputQueue.
  10. *
  11. * @author shane
  12. */
  13. public interface QueueFactory {
  14. /**
  15. * Get a new QueueHandler instance as needed.
  16. *
  17. * @param outputQueue the OutputQueue that will own this QueueHandler
  18. * @param queue The queue to handle.
  19. * @param out Where to send crap.
  20. * @return the new queue handler object.
  21. */
  22. public QueueHandler getQueueHandler(final OutputQueue outputQueue, final BlockingQueue<QueueItem> queue, final PrintWriter out);
  23. }