Package io.atomix.utils.concurrent
Class BlockingAwareThreadPoolContext
- java.lang.Object
-
- io.atomix.utils.concurrent.AbstractThreadContext
-
- io.atomix.utils.concurrent.ThreadPoolContext
-
- io.atomix.utils.concurrent.BlockingAwareThreadPoolContext
-
- All Implemented Interfaces:
Scheduler,ThreadContext,AutoCloseable,Executor
public class BlockingAwareThreadPoolContext extends ThreadPoolContext
Blocking aware thread pool context.
-
-
Field Summary
-
Fields inherited from class io.atomix.utils.concurrent.ThreadPoolContext
parent
-
-
Constructor Summary
Constructors Constructor Description BlockingAwareThreadPoolContext(ScheduledExecutorService parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Runnable command)-
Methods inherited from class io.atomix.utils.concurrent.ThreadPoolContext
close, schedule, schedule
-
Methods inherited from class io.atomix.utils.concurrent.AbstractThreadContext
block, isBlocked, unblock
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.atomix.utils.concurrent.ThreadContext
checkThread, isCurrentContext
-
-
-
-
Constructor Detail
-
BlockingAwareThreadPoolContext
public BlockingAwareThreadPoolContext(ScheduledExecutorService parent)
-
-
Method Detail
-
execute
public void execute(Runnable command)
- Specified by:
executein interfaceExecutor- Overrides:
executein classThreadPoolContext
-
-