Class CommandHelper.ReadConsoleTask

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 Details

    • ReadConsoleTask

      public ReadConsoleTask(Runnable listener)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable