Class PollingExecutionOutputHandler

java.lang.Object
com.xebialabs.deployit.plumbing.PollingExecutionOutputHandler
All Implemented Interfaces:
com.xebialabs.overthere.OverthereExecutionOutputHandler, Closeable, AutoCloseable

public class PollingExecutionOutputHandler extends Object implements com.xebialabs.overthere.OverthereExecutionOutputHandler, Closeable
  • Constructor Details

    • PollingExecutionOutputHandler

      protected PollingExecutionOutputHandler(ScheduledExecutorService scheduledExecutorService, Function<String,Object> onFlushCallback, boolean resetBufferOnFlush, long initialDelay, long delay)
  • Method Details

    • flush

      public void flush()
    • handleChar

      public void handleChar(char c)
      Specified by:
      handleChar in interface com.xebialabs.overthere.OverthereExecutionOutputHandler
    • handleLine

      public void handleLine(String line)
      Specified by:
      handleLine in interface com.xebialabs.overthere.OverthereExecutionOutputHandler
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • pollingHandler

      public static PollingExecutionOutputHandler pollingHandler(ScheduledExecutorService scheduledExecutorService, Function<String,Object> onFlushCallback, boolean resetBufferOnFlush, long initialDelay, long delay)