Package io.servicetalk.transport.api
Interface IoThreadFactory.IoThread
- All Superinterfaces:
ContextMapHolder
- Enclosing interface:
- IoThreadFactory<T extends Thread & IoThreadFactory.IoThread>
Marker interface for IO Threads. All threads created by a
IoThreadFactory
are expected to implement this
interface.-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic boolean
Returnstrue
if the current thread is anIoThreadFactory.IoThread
otherwise {code false}.static boolean
isIoThread
(Thread thread) Returnstrue
if the specified thread is anIoThreadFactory.IoThread
otherwise {code false}.Methods inherited from interface io.servicetalk.context.api.ContextMapHolder
context, context
-
Method Details
-
currentThreadIsIoThread
static boolean currentThreadIsIoThread()Returnstrue
if the current thread is anIoThreadFactory.IoThread
otherwise {code false}.- Returns:
true
if the current thread is anIoThreadFactory.IoThread
otherwise {code false}.
-
isIoThread
Returnstrue
if the specified thread is anIoThreadFactory.IoThread
otherwise {code false}.- Parameters:
thread
- the thread to be examined.- Returns:
true
if the specified thread is anIoThreadFactory.IoThread
otherwise {code false}.
-