Package com.xebialabs.deployit.plumbing
Class PollingExecutionOutputHandler
- java.lang.Object
-
- com.xebialabs.deployit.plumbing.PollingExecutionOutputHandler
-
- All Implemented Interfaces:
com.xebialabs.overthere.OverthereExecutionOutputHandler,java.io.Closeable,java.lang.AutoCloseable
public class PollingExecutionOutputHandler extends java.lang.Object implements com.xebialabs.overthere.OverthereExecutionOutputHandler, java.io.Closeable
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPollingExecutionOutputHandler(java.util.concurrent.ScheduledExecutorService scheduledExecutorService, java.util.function.Function<java.lang.String,java.lang.Object> onFlushCallback, boolean resetBufferOnFlush, long initialDelay, long delay)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidhandleChar(char c)voidhandleLine(java.lang.String line)static PollingExecutionOutputHandlerpollingHandler(java.util.concurrent.ScheduledExecutorService scheduledExecutorService, java.util.function.Function<java.lang.String,java.lang.Object> onFlushCallback, boolean resetBufferOnFlush, long initialDelay, long delay)
-
-
-
Constructor Detail
-
PollingExecutionOutputHandler
protected PollingExecutionOutputHandler(java.util.concurrent.ScheduledExecutorService scheduledExecutorService, java.util.function.Function<java.lang.String,java.lang.Object> onFlushCallback, boolean resetBufferOnFlush, long initialDelay, long delay)
-
-
Method Detail
-
flush
public void flush()
-
handleChar
public void handleChar(char c)
- Specified by:
handleCharin interfacecom.xebialabs.overthere.OverthereExecutionOutputHandler
-
handleLine
public void handleLine(java.lang.String line)
- Specified by:
handleLinein interfacecom.xebialabs.overthere.OverthereExecutionOutputHandler
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
pollingHandler
public static PollingExecutionOutputHandler pollingHandler(java.util.concurrent.ScheduledExecutorService scheduledExecutorService, java.util.function.Function<java.lang.String,java.lang.Object> onFlushCallback, boolean resetBufferOnFlush, long initialDelay, long delay)
-
-