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

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

package io.quarkus.netty.deployment;

import java.util.function.Supplier;

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

/**
 * Register EventLoopGroup suppliers to be used to produce main EventLoopGroup and boss EventLoopGroup annotated beans.
 * If not provided, both will be created from a default supplier.
 *
 * See EventLoopGroupBuildItem for actual supplier instances
 */
public final class EventLoopSupplierBuildItem extends SimpleBuildItem {

    private final Supplier mainSupplier;
    private final Supplier bossSupplier;

    public EventLoopSupplierBuildItem(Supplier mainSupplier, Supplier bossSupplier) {
        this.mainSupplier = mainSupplier;
        this.bossSupplier = bossSupplier;
    }

    public Supplier getMainSupplier() {
        return mainSupplier;
    }

    public Supplier getBossSupplier() {
        return bossSupplier;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy