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

io.smallrye.stork.spi.internal.LoadBalancerLoader Maven / Gradle / Ivy

Go to download

Main Stork API classes. You are likely to need `smallrye-stork-core` and not this module.

The newest version!
package io.smallrye.stork.spi.internal;

import io.smallrye.stork.api.LoadBalancer;
import io.smallrye.stork.api.ServiceDiscovery;
import io.smallrye.stork.api.config.ConfigWithType;
import io.smallrye.stork.spi.ElementWithType;

/**
 * Used by stork internals to generate service loader for LoadBalancerProvider
 */
public interface LoadBalancerLoader extends ElementWithType {
    /**
     * Creates a load balancer instance.
     *
     * @param config the configuration, must not be {@code null}
     * @param serviceDiscovery the service discovery used for that service
     * @return the load balancer
     */
    LoadBalancer createLoadBalancer(ConfigWithType config, ServiceDiscovery serviceDiscovery);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy