Package io.atomix.utils.concurrent
Interface ThreadContextFactory
public interface ThreadContextFactory
Thread context factory.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()Closes the factory.Creates a new thread context.
-
Method Details
-
createContext
ThreadContext createContext()Creates a new thread context.- Returns:
- a new thread context
-
close
default void close()Closes the factory.
-