Class BuildLoop

java.lang.Object
io.helidon.build.devloop.BuildLoop

public class BuildLoop extends Object
A continuous incremental build loop.
  • Method Details

    • builder

      public static BuildLoop.Builder builder()
      Returns a new builder.
      Returns:
      The builder.
    • start

      public BuildLoop start()
      Starts the build loop.
      Returns:
      This instance.
    • project

      public Project project()
      Returns the project, if present.
      Returns:
      The project or null if the loop has not started or not progressed to the point at which the project has been built.
    • monitor

      public BuildMonitor monitor()
      Returns the monitor.
      Returns:
      The monitor.
    • stop

      public BuildLoop stop(long maxWaitMillis) throws InterruptedException
      Stops the build loop.
      Parameters:
      maxWaitMillis - The e maximum milliseconds to wait.
      Returns:
      This instance.
      Throws:
      InterruptedException - If interrupted.
    • waitForStopped

      public boolean waitForStopped(long timeout, TimeUnit unit) throws InterruptedException
      Wait for the build loop to stop.
      Parameters:
      timeout - The maximum time to wait.
      unit - The time unit of timeout.
      Returns:
      true if the loop stopped, false if a timeout occurred.
      Throws:
      InterruptedException - If interrupted.