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 booleanReturnstrueif the current thread is anIoThreadFactory.IoThreadotherwise {code false}.static booleanisIoThread(Thread thread) Returnstrueif the specified thread is anIoThreadFactory.IoThreadotherwise {code false}.Methods inherited from interface io.servicetalk.context.api.ContextMapHolder
context, context
-
Method Details
-
currentThreadIsIoThread
static boolean currentThreadIsIoThread()Returnstrueif the current thread is anIoThreadFactory.IoThreadotherwise {code false}.- Returns:
trueif the current thread is anIoThreadFactory.IoThreadotherwise {code false}.
-
isIoThread
Returnstrueif the specified thread is anIoThreadFactory.IoThreadotherwise {code false}.- Parameters:
thread- the thread to be examined.- Returns:
trueif the specified thread is anIoThreadFactory.IoThreadotherwise {code false}.
-