Class LogBuffer

java.lang.Object
io.jenkins.tools.pluginmodernizer.tui.task.LogBuffer

public final class LogBuffer extends Object
Thread-safe buffer keeping the last log lines
  • Constructor Details

    • LogBuffer

      public LogBuffer(int capacity)
  • Method Details

    • add

      public void add(String line)
    • clear

      public void clear()
      Remove all the lines, new lines are kept from then on
    • snapshot

      public List<String> snapshot()