public final class ShellConversation extends Object
CommandFuture
, using a ResponseProvider
.Constructor and Description |
---|
ShellConversation(ResponseProvider<String> convoScript,
CommandFuture commandExecution) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
processToken(String matchedToken) |
Future<Void> |
start()
Asynchronously starts an interaction.
|
Future<Void> |
start(String tokenDelimiterRegex)
Asynchronously starts an interaction.
|
public ShellConversation(ResponseProvider<String> convoScript, CommandFuture commandExecution)
protected boolean processToken(String matchedToken) throws Exception
matchedToken
- The string tokenException
public final Future<Void> start()
start
again
has no effect.Future<?>
which represents the asynchronous execution
of the stream processing.