Interface ConsoleInterceptionAggregator

  • All Known Implementing Classes:
    DefaultConsoleInterceptionAggregator

    public interface ConsoleInterceptionAggregator
    The implementation of this interface aggregates lines captured on stdout and stderr into "interception jobs". These combine lines from both streams in one historical order.
    Author:
    Rene Schneider - initial API and implementation
    • Method Detail

      • startIntercept

        void startIntercept()
        Starts interception. Must be called at least once. May be called repeatedly without any effect.
      • stopIntercept

        void stopIntercept()
        Stops interception. Must be called at some point in time if an interception has been started! Can be called repeatedly without any effect.
      • pauseIntercept

        void pauseIntercept()
        Pauses interception. Streams are kept hooked; this command can thus be called often without negative effects on performance.
      • resumeIntercept

        void resumeIntercept()
        Resumes a paused interception.
      • retrieveIntercept

        Intercept retrieveIntercept()
        Returns a single interception job. This automatically starts a new interception job.
        Returns:
        the intercept job