Only create update thread on demand. 

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1486074 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2013-05-24 14:27:08 +00:00
parent 02a58c2a34
commit a3060d0c7d
1 changed files with 2 additions and 2 deletions

View File

@ -106,9 +106,9 @@ public class SimpleCachedLDAPAuthorizationMap implements AuthorizationMap {
new ConcurrentHashMap<ActiveMQDestination, AuthorizationEntry>();
public SimpleCachedLDAPAuthorizationMap() {
// Allow for only a couple outstanding update requests, they can be slow so we
// Allow for only a couple outstanding update request, they can be slow so we
// don't want a bunch to pile up for no reason.
updaterService = new ThreadPoolExecutor(1, 1, 0, TimeUnit.SECONDS,
updaterService = new ThreadPoolExecutor(0, 1, 60, TimeUnit.SECONDS,
new LinkedBlockingQueue<Runnable>(2),
new ThreadFactory() {