Shutdowns executors.
()
| 177 | * Shutdowns executors. |
| 178 | */ |
| 179 | public static void shutdown() { |
| 180 | trace("Shutting down thread executors"); |
| 181 | service.shutdownNow(); |
| 182 | scheduledService.shutdownNow(); |
| 183 | } |
| 184 | |
| 185 | private static int threadCount() { |
| 186 | return Runtime.getRuntime().availableProcessors(); |