public interface ConsoleCallback
Modifier and Type | Method and Description |
---|---|
int |
execute(ConsoleOperation output)
Will be executed when a return is pressed
|
CommandOperation |
getInput()
A blocking call that will return user input from the terminal
|
String |
getInputLine()
A blocking call that will return user input from the terminal
after the user has pressed enter.
|
void |
setProcess(Process process)
Internally callback method
|
int execute(ConsoleOperation output) throws InterruptedException
output
- the consoleOperationInterruptedException
CommandOperation getInput() throws InterruptedException
InterruptedException
String getInputLine() throws InterruptedException
InterruptedException
void setProcess(Process process)
process
- current processCopyright © 2019 JBoss by Red Hat. All rights reserved.