Package org.agrona.console
Class ContinueBarrier
java.lang.Object
org.agrona.console.ContinueBarrier
Barrier to block the calling thread until a command is given on the command line.
-
Constructor Summary
ConstructorsConstructorDescriptionContinueBarrier(String label) Create a barrier that will display the provided label and interact viaSystem.out,System.inandScanner. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawait()Await for input that matches the provided command.
-
Constructor Details
-
ContinueBarrier
Create a barrier that will display the provided label and interact viaSystem.out,System.inandScanner.- 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.
-