All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.netty.deployment.EventLoopGroupBuildItem Maven / Gradle / Ivy

package io.quarkus.netty.deployment;

import java.util.function.Supplier;

import io.netty.channel.EventLoopGroup;
import io.quarkus.builder.item.SimpleBuildItem;

/**
 * Provides suppliers that return EventLoopGroup used by the application.
 *
 * See EventLoopSupplierBuildItem to register custom EventLoopGroup
 */
public final class EventLoopGroupBuildItem extends SimpleBuildItem {
    private final Supplier bossEventLoopGroup;
    private final Supplier mainEventLoopGroup;

    public EventLoopGroupBuildItem(Supplier boss, Supplier main) {
        this.bossEventLoopGroup = boss;
        this.mainEventLoopGroup = main;
    }

    public Supplier getBossEventLoopGroup() {
        return bossEventLoopGroup;
    }

    public Supplier getMainEventLoopGroup() {
        return mainEventLoopGroup;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy