Class DirectIoWorker
java.lang.Object
br.com.objectos.testing.concurrent.DirectIoWorker
- All Implemented Interfaces:
IoWorker
An
IoWorker that immediately executes the submitted task.- Since:
- 2
-
Method Summary
Modifier and TypeMethodDescriptionfinal booleancancelOrInterrupt(IoTask task) Does not do anything.static DirectIoWorkerget()Returns the only instance of this class.final voidImmediately executes the specified task.
-
Method Details
-
get
Returns the only instance of this class.- Returns:
- the only instance of this class
-
cancelOrInterrupt
Does not do anything.- Specified by:
cancelOrInterruptin interfaceIoWorker- Returns:
falsealways
-
submit
Immediately executes the specified task.
-