Skip to content

MessengerThreadFactory

laforge49 edited this page Nov 9, 2011 · 2 revisions

The MessengerThreadFactory class is a very simple implementation of java.util.ThreadFactory and is used to create the threads used for asynchronous message passing.

/**
 * The MessengerThreadFactory is used to create threads.
 */
class MessengerThreadFactory extends ThreadFactory {
  /**
   * The newThread method returns a newly created Thread.
   */
  def newThread(runnable: Runnable) = new Thread(runnable)
}

MessengerThreadFactory

Asynchronous Messaging

Clone this wiki locally