org.ploin.pmf.impl
Class SecondThreadSending
java.lang.Object
org.ploin.pmf.impl.SecondThreadSending
- All Implemented Interfaces:
- Serializable, Runnable, ISecondThreadSending
public class SecondThreadSending
- extends Object
- implements ISecondThreadSending
Description: Implementation of the ISecondThreadSending interface.
It is responsible for sending the mail. If in the configuration
singleThread is false, this class is running in a
second thread.
$LastChangedBy: r.reiz $
$Revision: 80 $
$Date: 2010-03-18 11:39:35 +0100 (Thu, 18 Mar 2010) $
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecondThreadSending
public SecondThreadSending(IMailSender mailSender,
IPropertiesLoader propertiesLoader,
MailConfig mailConfig,
TemplateConfig templateConfig,
Map<String,String> map,
String plainReplaced,
String htmlReplaced)
run
public void run()
- Specified by:
run in interface Runnable
send
public SendingResult send()
throws MailFactoryException
- Specified by:
send in interface ISecondThreadSending
- Throws:
MailFactoryException
getServerConfig
public ServerConfig getServerConfig(String client,
String selectedNode)
throws MailFactoryException
- Specified by:
getServerConfig in interface ISecondThreadSending
- Throws:
MailFactoryException
getLoadbalancedNode
public ServerConfig getLoadbalancedNode()
throws MailFactoryException
- Specified by:
getLoadbalancedNode in interface ISecondThreadSending
- Throws:
MailFactoryException
Copyright © 2012 PLOIN GmbH. All Rights Reserved.