Author: borges
Date: 2012-01-03 06:53:37 -0500 (Tue, 03 Jan 2012)
New Revision: 11948
Modified:
trunk/hornetq-core/src/main/java/org/hornetq/core/client/impl/ClientSessionFactoryImpl.java
Log:
Use Set instead of List for CLOSE_RUNNABLES
Modified:
trunk/hornetq-core/src/main/java/org/hornetq/core/client/impl/ClientSessionFactoryImpl.java
===================================================================
---
trunk/hornetq-core/src/main/java/org/hornetq/core/client/impl/ClientSessionFactoryImpl.java 2012-01-03
10:40:07 UTC (rev 11947)
+++
trunk/hornetq-core/src/main/java/org/hornetq/core/client/impl/ClientSessionFactoryImpl.java 2012-01-03
11:53:37 UTC (rev 11948)
@@ -17,11 +17,11 @@
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
-import java.util.Collections;
import java.util.concurrent.Executor;
import java.util.concurrent.Future;
import java.util.concurrent.ScheduledExecutorService;
@@ -155,7 +155,7 @@
private final Object waitLock = new Object();
- public final static List<CloseRunnable> CLOSE_RUNNABLES =
Collections.synchronizedList(new ArrayList<CloseRunnable>());
+ public final static Set<CloseRunnable> CLOSE_RUNNABLES =
Collections.synchronizedSet(new HashSet<CloseRunnable>());
// Static
//
---------------------------------------------------------------------------------------
Show replies by date