Class AbstractThreadContext

java.lang.Object
io.atomix.utils.concurrent.AbstractThreadContext
All Implemented Interfaces:
Scheduler, ThreadContext, AutoCloseable, Executor
Direct Known Subclasses:
SingleThreadContext

public abstract class AbstractThreadContext extends Object implements ThreadContext
Abstract thread context.
  • Constructor Details

    • AbstractThreadContext

      public AbstractThreadContext()
  • Method Details

    • isBlocked

      public boolean isBlocked()
      Description copied from interface: ThreadContext
      Returns whether the thread context is currently marked blocked.
      Specified by:
      isBlocked in interface ThreadContext
      Returns:
      whether the thread context is currently marked blocked
    • block

      public void block()
      Description copied from interface: ThreadContext
      Marks the thread context as blocked.
      Specified by:
      block in interface ThreadContext
    • unblock

      public void unblock()
      Description copied from interface: ThreadContext
      Marks the thread context as unblocked.
      Specified by:
      unblock in interface ThreadContext