xmlBlaster 2.1.0 API

org.xmlBlaster.util.protocol.email
Class SmtpClient.AsyncSender

java.lang.Object
  extended by org.xmlBlaster.util.protocol.email.SmtpClient.AsyncSender
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
SmtpClient

 class SmtpClient.AsyncSender
extends java.lang.Object
implements java.lang.Runnable

Consumer pattern. The mail can be send asynchronously to decouple the sending thread from a blocking smtp server

Author:
marcel

Field Summary
private  java.lang.String messageIdFileName
           
private  java.util.concurrent.BlockingQueue<EmailData> queue
           
private  SmtpClient smtpClient
           
 
Constructor Summary
SmtpClient.AsyncSender(SmtpClient smtpClient, java.util.concurrent.BlockingQueue<EmailData> q, java.lang.String messageIdFileName)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

smtpClient

private final SmtpClient smtpClient

queue

private final java.util.concurrent.BlockingQueue<EmailData> queue

messageIdFileName

private java.lang.String messageIdFileName
Constructor Detail

SmtpClient.AsyncSender

SmtpClient.AsyncSender(SmtpClient smtpClient,
                       java.util.concurrent.BlockingQueue<EmailData> q,
                       java.lang.String messageIdFileName)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.