Package io.atomix.utils.concurrent
Interface ThreadContextFactory
-
- All Known Implementing Classes:
BlockingAwareSingleThreadContextFactory,BlockingAwareThreadPoolContextFactory
public interface ThreadContextFactoryThread context factory.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()Closes the factory.ThreadContextcreateContext()Creates a new thread context.
-
-
-
Method Detail
-
createContext
ThreadContext createContext()
Creates a new thread context.- Returns:
- a new thread context
-
close
default void close()
Closes the factory.
-
-