Update of /var/cvs/src/org/mmbase/util
In directory james.mmbase.org:/tmp/cvs-serv12923

Modified Files:
        ThreadPools.java 
Log Message:
some scoping only


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/util


Index: ThreadPools.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/util/ThreadPools.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- ThreadPools.java    1 Aug 2008 21:04:52 -0000       1.16
+++ ThreadPools.java    7 Aug 2008 18:53:34 -0000       1.17
@@ -17,12 +17,13 @@
  *
  * @since MMBase 1.8
  * @author Michiel Meeuwissen
- * @version $Id: ThreadPools.java,v 1.16 2008/08/01 21:04:52 michiel Exp $
+ * @version $Id: ThreadPools.java,v 1.17 2008/08/07 18:53:34 michiel Exp $
  */
 public abstract class ThreadPools {
     private static final Logger log = 
Logging.getLoggerInstance(ThreadPools.class);
 
-    private static Map<Future, String> identifiers = 
Collections.synchronizedMap(new WeakHashMap<Future, String>());
+    private static Map<Future, String> identifiers = 
+        Collections.synchronizedMap(new WeakHashMap<Future, String>());
 
     /**
      * There is no way to identify the FutureTask objects returned in
@@ -72,9 +73,9 @@
     }
 
     /**
-     * All kind of jobs that should happend in a seperat Thread can be
+     * All kind of jobs that should happen in a seperate Thread can be
      * executed by this executor. E.g. sending mail could be done by a
-     * jobs of this type.
+     * job of this type.
      * 
      */
     public static final ExecutorService jobsExecutor = new 
ThreadPoolExecutor(2, 10, 5 * 60 , TimeUnit.SECONDS, new 
ArrayBlockingQueue<Runnable>(200), new ThreadFactory() {
@@ -100,12 +101,12 @@
 
 
 
-    public static final UtilReader properties = new 
UtilReader("threadpools.xml", new Runnable() { public void run() { configure(); 
}});
+    static final UtilReader properties = new UtilReader("threadpools.xml", new 
Runnable() { public void run() { configure(); }});
 
     /**
      * @since MMBase-1.9
      */
-    public static void configure() {
+    static void configure() {
 
         Map<String,String> props = properties.getProperties();
         String max = props.get("jobs.maxsize");
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to