Skip to content

Commit

Permalink
Merge pull request #5418 from cescoffier/features/missing-build-item
Browse files Browse the repository at this point in the history
Avoid the re-creation of the event loops
  • Loading branch information
gsmet authored Nov 13, 2019
2 parents 0318d66 + 282e8a5 commit 84f9ab8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import io.netty.channel.EventLoopGroup;
import io.quarkus.builder.item.SimpleBuildItem;

public class EventLoopSupplierBuildItem extends SimpleBuildItem {
public final class EventLoopSupplierBuildItem extends SimpleBuildItem {

private final Supplier<EventLoopGroup> mainSupplier;
private final Supplier<EventLoopGroup> bossSupplier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ EventLoopCountBuildItem eventLoopCount(VertxCoreRecorder recorder, VertxConfigur
return new EventLoopCountBuildItem(recorder.calculateEventLoopThreads(vertxConfiguration));
}

@BuildStep
@Record(ExecutionTime.STATIC_INIT)
EventLoopSupplierBuildItem eventLoop(VertxCoreRecorder recorder) {
return new EventLoopSupplierBuildItem(recorder.mainSupplier(), recorder.bossSupplier());
Expand Down

0 comments on commit 84f9ab8

Please sign in to comment.