com.ericdaugherty.mail.server.services.smtp
Class SenderPool

java.lang.Object
  extended by com.ericdaugherty.mail.server.services.smtp.SenderPool

public class SenderPool
extends java.lang.Object

This class allows SMTPSender to deliver mail concurrently. Since the mail sending process itself doesn't share resources multiple instances are allowed without provision for synchronization issues. However access to the queue is externally synchronized, to prevent any issue with concurrent inserts or removals and especially problems that may arise when the queue is forced to increase its size.

Author:
Andreas Kyrmegalos

Constructor Summary
SenderPool(int count, java.lang.String name)
          The single constructor of this class.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SenderPool

public SenderPool(int count,
                  java.lang.String name)
The single constructor of this class.

Parameters:
count - The maximum number of allowed threads.