类 FixedExecutorService
- java.lang.Object
-
- net.risedata.rpc.service.patientia.FixedExecutorService
-
- 所有已实现的接口:
RPCExecutorService
public class FixedExecutorService extends Object implements RPCExecutorService
-
-
构造器概要
构造器 构造器 说明 FixedExecutorService(int size)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidexecutor(Runnable task)执行一条任务intgetActiveCount()获取当前激活数longgetCompletedTaskCount()获取总共完成 的任务数量intgetCorePoolSize()获取核心线程数intgetMaximumPoolSize()获取最大执行数intgetPoolSize()获取当前线程数longgetTaskCount()获取任务数
-
-
-
方法详细资料
-
executor
public void executor(Runnable task)
从接口复制的说明:RPCExecutorService执行一条任务- 指定者:
executor在接口中RPCExecutorService- 参数:
task- 任务
-
getMaximumPoolSize
public int getMaximumPoolSize()
从接口复制的说明:RPCExecutorService获取最大执行数- 指定者:
getMaximumPoolSize在接口中RPCExecutorService- 返回:
-
getActiveCount
public int getActiveCount()
从接口复制的说明:RPCExecutorService获取当前激活数- 指定者:
getActiveCount在接口中RPCExecutorService- 返回:
-
getTaskCount
public long getTaskCount()
从接口复制的说明:RPCExecutorService获取任务数- 指定者:
getTaskCount在接口中RPCExecutorService- 返回:
-
getCorePoolSize
public int getCorePoolSize()
从接口复制的说明:RPCExecutorService获取核心线程数- 指定者:
getCorePoolSize在接口中RPCExecutorService- 返回:
-
getCompletedTaskCount
public long getCompletedTaskCount()
从接口复制的说明:RPCExecutorService获取总共完成 的任务数量- 指定者:
getCompletedTaskCount在接口中RPCExecutorService- 返回:
-
getPoolSize
public int getPoolSize()
从接口复制的说明:RPCExecutorService获取当前线程数- 指定者:
getPoolSize在接口中RPCExecutorService- 返回:
-
-