Class ConcurrentTestCommandGenerator.SleepCommand
- java.lang.Object
-
- org.apache.calcite.test.concurrent.ConcurrentTestCommandGenerator.AbstractCommand
-
- org.apache.calcite.test.concurrent.ConcurrentTestCommandGenerator.SleepCommand
-
- All Implemented Interfaces:
ConcurrentTestCommand
- Enclosing class:
- ConcurrentTestCommandGenerator
private static class ConcurrentTestCommandGenerator.SleepCommand extends ConcurrentTestCommandGenerator.AbstractCommand
SleepCommand causes the execution thread to wait for all other threads in the test before continuing.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.calcite.test.concurrent.ConcurrentTestCommand
ConcurrentTestCommand.ShouldHaveFailedException
-
-
Field Summary
Fields Modifier and Type Field Description private long
millis
-
Constructor Summary
Constructors Modifier Constructor Description private
SleepCommand(long millis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doExecute(ConcurrentTestCommandExecutor executor)
-
Methods inherited from class org.apache.calcite.test.concurrent.ConcurrentTestCommandGenerator.AbstractCommand
execute, isFailureExpected, markToFail, markToFail
-
-
-
-
Method Detail
-
doExecute
protected void doExecute(ConcurrentTestCommandExecutor executor) throws java.lang.Exception
- Specified by:
doExecute
in classConcurrentTestCommandGenerator.AbstractCommand
- Throws:
java.lang.Exception
-
-