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

com.yahoo.config.provision.zone.RoutingMethod Maven / Gradle / Ivy

There is a newer version: 8.441.21
Show newest version
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.provision.zone;

/**
 * The routing methods supported by a zone.
 *
 * @author mpolden
 */
public enum RoutingMethod {

    /** Routing happens through a dedicated layer 4 load balancer */
    exclusive,

    /** Routing happens through a shared layer 4 load balancer */
    sharedLayer4;

    /** Returns whether this method uses layer 4 routing */
    public boolean isDirect() {
        return this == exclusive || this == sharedLayer4;
    }

    /** Returns whether this method routes requests through a shared routing layer */
    public boolean isShared() {
        return this == sharedLayer4;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy