mirror of https://github.com/apache/activemq.git
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:
parent
02a58c2a34
commit
a3060d0c7d
|
@ -106,9 +106,9 @@ public class SimpleCachedLDAPAuthorizationMap implements AuthorizationMap {
|
||||||
new ConcurrentHashMap<ActiveMQDestination, AuthorizationEntry>();
|
new ConcurrentHashMap<ActiveMQDestination, AuthorizationEntry>();
|
||||||
|
|
||||||
public SimpleCachedLDAPAuthorizationMap() {
|
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.
|
// 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 LinkedBlockingQueue<Runnable>(2),
|
||||||
new ThreadFactory() {
|
new ThreadFactory() {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue