Package com.couchbase.lite.internal.exec
Class CBLExecutor
- java.lang.Object
-
- java.util.concurrent.AbstractExecutorService
-
- java.util.concurrent.ThreadPoolExecutor
-
- com.couchbase.lite.internal.exec.CBLExecutor
-
- All Implemented Interfaces:
Executor,ExecutorService
public class CBLExecutor extends ThreadPoolExecutor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
-
-
Constructor Summary
Constructors Constructor Description CBLExecutor(String name)CBLExecutor(String name, int min, int max, BlockingQueue<Runnable> workQueue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddumpState()voidexecute(Runnable task)StringtoString()-
Methods inherited from class java.util.concurrent.ThreadPoolExecutor
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, 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
-
-
-
-
Constructor Detail
-
CBLExecutor
public CBLExecutor(@NonNull String name)
-
CBLExecutor
public CBLExecutor(@NonNull String name, int min, int max, @NonNull BlockingQueue<Runnable> workQueue)
-
-
Method Detail
-
execute
public void execute(@NonNull Runnable task)- Specified by:
executein interfaceExecutor- Overrides:
executein classThreadPoolExecutor
-
toString
@NonNull public String toString()
- Overrides:
toStringin classThreadPoolExecutor
-
dumpState
public void dumpState()
-
-