Package io.atomix.utils.concurrent
Class BlockingAwareSingleThreadContext
- java.lang.Object
-
- io.atomix.utils.concurrent.AbstractThreadContext
-
- io.atomix.utils.concurrent.SingleThreadContext
-
- io.atomix.utils.concurrent.BlockingAwareSingleThreadContext
-
- All Implemented Interfaces:
Scheduler,ThreadContext,AutoCloseable,Executor
public class BlockingAwareSingleThreadContext extends SingleThreadContext
Blocking aware single thread context.
-
-
Field Summary
-
Fields inherited from class io.atomix.utils.concurrent.SingleThreadContext
executor, LOGGER
-
-
Constructor Summary
Constructors Constructor Description BlockingAwareSingleThreadContext(String nameFormat, Executor threadPoolExecutor)BlockingAwareSingleThreadContext(ThreadFactory factory, Executor threadPoolExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Runnable command)-
Methods inherited from class io.atomix.utils.concurrent.SingleThreadContext
close, getThread, 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
-
BlockingAwareSingleThreadContext
public BlockingAwareSingleThreadContext(String nameFormat, Executor threadPoolExecutor)
-
BlockingAwareSingleThreadContext
public BlockingAwareSingleThreadContext(ThreadFactory factory, Executor threadPoolExecutor)
-
-
Method Detail
-
execute
public void execute(Runnable command)
- Specified by:
executein interfaceExecutor- Overrides:
executein classSingleThreadContext
-
-