java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
com.machinezoo.hookless.ReactiveExecutor
- All Implemented Interfaces:
-
Executor
,ExecutorService
Latency-optimized executor designed for reactive programs.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
-
Constructor Summary
ConstructorDescriptionReactiveExecutor
(int parallelism) ReactiveExecutor
(int parallelism, ThreadFactory threads) -
Method Summary
Modifier and TypeMethodDescriptionstatic ReactiveExecutor
common()
static ReactiveExecutor
current()
void
long
Methods inherited from class java.util.concurrent.ThreadPoolExecutor
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, toString
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
-
Constructor Details
-
ReactiveExecutor
-
ReactiveExecutor
public ReactiveExecutor(int parallelism) -
ReactiveExecutor
public ReactiveExecutor()
-
-
Method Details
-
getEventCount
public long getEventCount() -
execute
- Specified by:
-
execute
in interfaceExecutor
- Overrides:
-
execute
in classThreadPoolExecutor
-
current
-
common
-