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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionContinueBarrier
(String label) Create a barrier that will display the provided label and interact viaSystem.out
,System.in
andScanner
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
await()
Await for input that matches the provided command.
-
Field Details
-
label
-
-
Constructor Details
-
ContinueBarrier
Create a barrier that will display the provided label and interact viaSystem.out
,System.in
andScanner
.- 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.
-