Merged V3.3-BUG-FIX to HEAD

22123: Fixed NFS path to handle conversion not supporting folder paths. ALF-4462.
   22167: ALF-4557: Use batching on population of alf_locale table on upgrade from 2.x on MySQL
   22169: Merge V3.3-BUG-FIX-2010_07_13 to V3.3-BUG-FIX
      21554 : ALF-2339 - Can not handle the load if a lot of mails arriving a the same time.
   22173: Merge from V3.3-BUG-FIX_2010_06_24 to V3.3-BUG-FIX
      20976: ALF-2793 IMAP thunderbird takes ages to display the new contents of a folder.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22214 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Dave Ward
2010-09-03 08:58:18 +00:00
parent b184b46d7d
commit 9d9fe8f1e1
6 changed files with 33 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ public abstract class EmailServer extends AbstractLifecycleBean
private boolean enabled;
private String domain;
private int port;
private int maxConnections;
private Set<String> blockedSenders;
private Set<String> allowedSenders;
@@ -58,6 +59,7 @@ public abstract class EmailServer extends AbstractLifecycleBean
this.enabled = false;
this.port = 25;
this.domain = null;
this.maxConnections = 3;
this.blockedSenders = new HashSet<String>(23);
this.allowedSenders = new HashSet<String>(23);
}
@@ -93,6 +95,24 @@ public abstract class EmailServer extends AbstractLifecycleBean
this.port = port;
}
/**
* Returns the maximum number of connection accepted by the server.
* @return the maximum number of connections
*/
protected int getMaxConnections()
{
return maxConnections;
}
/**
* Sets the maximum number of connection accepted by the server
* @param maxConnections
*/
public void setMaxConnections(int maxConnections)
{
this.maxConnections = maxConnections;
}
/**
* Set the blocked senders as a comma separated list. The entries will be trimmed of
* all whitespace.