Skip to content

Commit

Permalink
add getPoolNames method to ThreadPoolManager (#2065)
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Bach <openhab@mortalsilence.net>
  • Loading branch information
pravussum authored Jan 5, 2021
1 parent 64f444c commit 75f52ac
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 75f52ac

Please sign in to comment.