Interface IoThreadFactory.IoThread

All Superinterfaces:
ContextMapHolder
Enclosing interface:
IoThreadFactory<T extends Thread & IoThreadFactory.IoThread>

public static interface IoThreadFactory.IoThread extends ContextMapHolder
Marker interface for IO Threads. All threads created by a IoThreadFactory are expected to implement this interface.
  • Method Details

    • currentThreadIsIoThread

      static boolean currentThreadIsIoThread()
      Returns true if the current thread is an IoThreadFactory.IoThread otherwise {code false}.
      Returns:
      true if the current thread is an IoThreadFactory.IoThread otherwise {code false}.
    • isIoThread

      static boolean isIoThread(Thread thread)
      Returns true if the specified thread is an IoThreadFactory.IoThread otherwise {code false}.
      Parameters:
      thread - the thread to be examined.
      Returns:
      true if the specified thread is an IoThreadFactory.IoThread otherwise {code false}.