Package io.helidon.build.devloop
Class BuildLoop
java.lang.Object
io.helidon.build.devloop.BuildLoop
A continuous incremental build loop.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic BuildLoop.Builderbuilder()Returns a new builder.monitor()Returns the monitor.project()Returns the project, if present.start()Starts the build loop.stop(long maxWaitMillis) Stops the build loop.booleanwaitForStopped(long timeout, TimeUnit unit) Wait for the build loop to stop.
-
Method Details
-
builder
Returns a new builder.- Returns:
- The builder.
-
start
Starts the build loop.- Returns:
- This instance.
-
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
Returns the monitor.- Returns:
- The monitor.
-
stop
Stops the build loop.- Parameters:
maxWaitMillis- The e maximum milliseconds to wait.- Returns:
- This instance.
- Throws:
InterruptedException- If interrupted.
-
waitForStopped
Wait 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.
-