Class 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
      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 Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void flush()  
      void handleChar​(char c)  
      void handleLine​(java.lang.String line)  
      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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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:
        handleChar in interface com.xebialabs.overthere.OverthereExecutionOutputHandler
      • handleLine

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

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.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)