java.lang.Object
br.com.objectos.testing.concurrent.DirectIoWorker
All Implemented Interfaces:
IoWorker

public final class DirectIoWorker extends Object implements IoWorker
An IoWorker that immediately executes the submitted task.
Since:
2
  • Method Details

    • get

      public static DirectIoWorker get()
      Returns the only instance of this class.
      Returns:
      the only instance of this class
    • cancelOrInterrupt

      public final boolean cancelOrInterrupt(IoTask task)
      Does not do anything.
      Specified by:
      cancelOrInterrupt in interface IoWorker
      Returns:
      false always
    • submit

      public final void submit(IoTask task)
      Immediately executes the specified task.
      Specified by:
      submit in interface IoWorker
      Parameters:
      task - the I/O task to execute