java.lang.Object
org.apache.camel.dsl.jbang.core.commands.CommandHelper.ReadConsoleTask
- All Implemented Interfaces:
Runnable
- Enclosing class:
CommandHelper
public static class CommandHelper.ReadConsoleTask
extends Object
implements Runnable
A background task that reads from console, and can be used to signal when user has entered or pressed ctrl + c /
ctrl + d
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ReadConsoleTask
public ReadConsoleTask(Runnable listener)
-
Method Details
-
run
public void run()
- Specified by:
run in interface Runnable