| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_NAME |
| Constructor and Description |
|---|
ThreadPoolGovernor() |
| Modifier and Type | Method and Description |
|---|---|
static long |
getPeriod() |
static ThreadPoolExecutor |
getThreadPoolExecutor(String name) |
static boolean |
isLoggable() |
static void |
registerThreadPoolExecutor(SofaThreadPoolExecutor threadPoolExecutor) |
static void |
registerThreadPoolExecutor(String name,
ThreadPoolExecutor threadPoolExecutor)
Can also be used to manage JDK thread pool.
|
static void |
setLoggable(boolean loggable) |
static void |
setPeriod(long period) |
static void |
startSchedule() |
static void |
stopSchedule() |
static void |
unregisterThreadPoolExecutor(String name) |
public static String CLASS_NAME
public static void startSchedule()
public static void stopSchedule()
public static void registerThreadPoolExecutor(String name, ThreadPoolExecutor threadPoolExecutor)
name - thread pool namethreadPoolExecutor - thread pool instancepublic static void registerThreadPoolExecutor(SofaThreadPoolExecutor threadPoolExecutor)
public static void unregisterThreadPoolExecutor(String name)
public static ThreadPoolExecutor getThreadPoolExecutor(String name)
public static long getPeriod()
public static void setPeriod(long period)
public static boolean isLoggable()
public static void setLoggable(boolean loggable)
Copyright © 2020. All rights reserved.