public abstract class AutoFlushingProcessOutputHandler
extends java.lang.Object
implements com.xebialabs.overthere.OverthereProcessOutputHandler, java.io.Closeable
OverthereProcessOutputHandler that delegates actual logging to its subclass. When no output has
been sent to stdout in a while, it is flushed automatically.| Modifier and Type | Field and Description |
|---|---|
static int |
FLUSH_CHECK_INTERVAL_MS |
static int |
FLUSH_DELAY_MS |
| Constructor and Description |
|---|
AutoFlushingProcessOutputHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
handleOutput(char c) |
protected abstract void |
handleOutput(java.lang.String buffer) |
void |
handleOutputLine(java.lang.String line) |
public static final int FLUSH_DELAY_MS
public static final int FLUSH_CHECK_INTERVAL_MS
public final void handleOutputLine(java.lang.String line)
handleOutputLine in interface com.xebialabs.overthere.OverthereProcessOutputHandlerpublic final void handleOutput(char c)
handleOutput in interface com.xebialabs.overthere.OverthereProcessOutputHandlerprotected abstract void handleOutput(java.lang.String buffer)
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable