public class EventLoop extends ThreadPoolExecutor implements com.swak.reactivex.threads.Context
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| 构造器和说明 |
|---|
EventLoop()
定义一个线程的线程池
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
execute(Runnable task)
记录唯一线程
|
EventLoopGroup |
getParent() |
boolean |
inEventLoop()
当前是否运行在EventLoop下
|
boolean |
inEventLoop(Thread thread)
当前是否运行在EventLoop下
|
EventLoop |
setParent(EventLoopGroup parent) |
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated, toStringinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitpublic void execute(Runnable task)
execute 在接口中 com.swak.reactivex.threads.Contextexecute 在接口中 Executorexecute 在类中 ThreadPoolExecutorpublic EventLoopGroup getParent()
public EventLoop setParent(EventLoopGroup parent)
public boolean inEventLoop(Thread thread)
public boolean inEventLoop()
Copyright © 2020. All rights reserved.