-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20012 from stuartwdouglas/fix-ct-failure
Fix lambda continuous testing failure
- Loading branch information
Showing
17 changed files
with
174 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...nt/src/main/java/io/quarkus/deployment/builditem/RuntimeApplicationShutdownBuildItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package io.quarkus.deployment.builditem; | ||
|
||
import org.jboss.logging.Logger; | ||
|
||
import io.quarkus.builder.item.MultiBuildItem; | ||
|
||
/** | ||
* Build Item that can be used to queue shutdown tasks that are run when the runtime application shuts down. | ||
* | ||
* This is similar to {@link ShutdownContextBuildItem} however it applies to tasks on the 'build' side, so if a processor | ||
* wants to close something after the application has completed this item lets it do this. | ||
* | ||
* This has no effect for production applications, and is only useful in dev/test mode. The main use case for this is | ||
* for shutting down deployment side test utilities at the end of a test run. | ||
*/ | ||
public final class RuntimeApplicationShutdownBuildItem extends MultiBuildItem { | ||
|
||
private static final Logger log = Logger.getLogger(RuntimeApplicationShutdownBuildItem.class); | ||
|
||
private final Runnable closeTask; | ||
|
||
public RuntimeApplicationShutdownBuildItem(Runnable closeTask) { | ||
this.closeTask = closeTask; | ||
} | ||
|
||
public Runnable getCloseTask() { | ||
return closeTask; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.