Class ContinueBarrier

java.lang.Object
org.agrona.console.ContinueBarrier

public class ContinueBarrier extends Object
Barrier to block the calling thread until a command is given on the command line.
  • Field Details

  • Constructor Details

    • ContinueBarrier

      public ContinueBarrier(String label)
      Create a barrier that will display the provided label and interact via System.out, System.in and Scanner.
      Parameters:
      label - to prompt the user.
  • Method Details

    • await

      public boolean await()
      Await for input that matches the provided command.
      Returns:
      true if y otherwise false.