Skip to content

Commit

Permalink
add getPoolNames method to ThreadPoolManager
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Bach <openhab@mortalsilence.net> (github: pravussum)
  • Loading branch information
Robert Bach committed Jan 3, 2021
1 parent 55d2aaf commit 0596c64
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.WeakHashMap;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutorService;
Expand Down Expand Up @@ -167,4 +168,8 @@ protected static int getConfig(String poolName) {
Integer cfg = configs.get(poolName);
return (cfg != null) ? cfg : DEFAULT_THREAD_POOL_SIZE;
}

public static Set<String> getPoolNames() {
return pools.keySet();
}
}

0 comments on commit 0596c64

Please sign in to comment.