com.goldeninnovations.smp.messageprocessor
Class MultiThreadedMessageProcessor
java.lang.Object
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.
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 |
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.
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.