public class SparkTextIoApp extends Object implements TextIoApp<SparkTextIoApp>
| Constructor and Description |
|---|
SparkTextIoApp(Consumer<TextIO> textIoRunner,
WebTextTerminal termTemplate) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPort() |
SparkDataServer |
getServer() |
void |
init() |
SparkTextIoApp |
withMaxInactiveSeconds(Integer maxInactiveSeconds) |
SparkTextIoApp |
withOnAbort(Consumer<String> onAbort) |
SparkTextIoApp |
withOnDispose(Consumer<String> onDispose) |
SparkTextIoApp |
withPort(Integer portNumber) |
SparkTextIoApp |
withStaticFilesLocation(String location) |
public SparkTextIoApp(Consumer<TextIO> textIoRunner, WebTextTerminal termTemplate)
public SparkDataServer getServer()
public void init()
init in interface TextIoApp<SparkTextIoApp>public SparkTextIoApp withOnDispose(Consumer<String> onDispose)
withOnDispose in interface TextIoApp<SparkTextIoApp>public SparkTextIoApp withOnAbort(Consumer<String> onAbort)
withOnAbort in interface TextIoApp<SparkTextIoApp>public SparkTextIoApp withMaxInactiveSeconds(Integer maxInactiveSeconds)
withMaxInactiveSeconds in interface TextIoApp<SparkTextIoApp>public SparkTextIoApp withStaticFilesLocation(String location)
withStaticFilesLocation in interface TextIoApp<SparkTextIoApp>public SparkTextIoApp withPort(Integer portNumber)
withPort in interface TextIoApp<SparkTextIoApp>public int getPort()
getPort in interface TextIoApp<SparkTextIoApp>