Package io.atomix.utils.concurrent
Class BlockingAwareSingleThreadContextFactory
- java.lang.Object
-
- io.atomix.utils.concurrent.BlockingAwareSingleThreadContextFactory
-
- All Implemented Interfaces:
ThreadContextFactory
public class BlockingAwareSingleThreadContextFactory extends Object implements ThreadContextFactory
Single thread context factory.
-
-
Constructor Summary
Constructors Constructor Description BlockingAwareSingleThreadContextFactory(int threadPoolSize, ThreadFactory threadFactory)BlockingAwareSingleThreadContextFactory(String nameFormat, int threadPoolSize, org.slf4j.Logger logger)BlockingAwareSingleThreadContextFactory(ThreadFactory threadFactory, Executor threadPoolExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThreadContextcreateContext()Creates a new thread context.-
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.ThreadContextFactory
close
-
-
-
-
Constructor Detail
-
BlockingAwareSingleThreadContextFactory
public BlockingAwareSingleThreadContextFactory(String nameFormat, int threadPoolSize, org.slf4j.Logger logger)
-
BlockingAwareSingleThreadContextFactory
public BlockingAwareSingleThreadContextFactory(int threadPoolSize, ThreadFactory threadFactory)
-
BlockingAwareSingleThreadContextFactory
public BlockingAwareSingleThreadContextFactory(ThreadFactory threadFactory, Executor threadPoolExecutor)
-
-
Method Detail
-
createContext
public ThreadContext createContext()
Description copied from interface:ThreadContextFactoryCreates a new thread context.- Specified by:
createContextin interfaceThreadContextFactory- Returns:
- a new thread context
-
-