com.goldeninnovations.smp.messageprocessor
Class MultiThreadedMessageProcessor

java.lang.Object
  extended by com.goldeninnovations.smp.messageprocessor.MultiThreadedMessageProcessor
All Implemented Interfaces:
MessageProcessor

public class MultiThreadedMessageProcessor
extends Object
implements MessageProcessor

Creates a new thread to handle each new message.


Constructor Summary
MultiThreadedMessageProcessor(MessageProcessor processor)
          Creates a new MultiThreadedMessageProcessor that uses the specified processor to handle incoming messages on a new thread.
 
Method Summary
 void processMessage(EmailMessage emailMessage)
          Called when an email message has been received and is ready for processing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiThreadedMessageProcessor

public MultiThreadedMessageProcessor(MessageProcessor processor)
Creates a new MultiThreadedMessageProcessor that uses the specified processor to handle incoming messages on a new thread.

Parameters:
processor - the MessageProcessor to use.
Method Detail

processMessage

public void processMessage(EmailMessage emailMessage)
Description copied from interface: MessageProcessor
Called when an email message has been received and is ready for processing.

Specified by:
processMessage in interface MessageProcessor
Parameters:
emailMessage - the email message to process.


Copyright © 2010 Eric Daugherty. All Rights Reserved.