Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid the re-creation of the event loops #5418

Merged
merged 1 commit into from
Nov 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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