Package io.helidon.build.dev
Class BuildLoop
- java.lang.Object
-
- io.helidon.build.dev.BuildLoop
-
public class BuildLoop extends Object
A continuous incremental build loop.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBuildLoop.BuilderABuildLoopbuilder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BuildLoop.Builderbuilder()Returns a new builder.BuildMonitormonitor()Returns the monitor.Projectproject()Returns the project, if present.BuildLoopstart()Starts the build loop.BuildLoopstop(long maxWaitMillis)Stops the build loop.booleanwaitForStopped(long timeout, TimeUnit unit)Wait for the build loop to stop.
-
-
-
Method Detail
-
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
nullif 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 InterruptedExceptionWait for the build loop to stop.- Parameters:
timeout- The maximum time to wait.unit- The time unit oftimeout.- Returns:
trueif the loop stopped,falseif a timeout occurred.- Throws:
InterruptedException- If interrupted.
-
-