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

com.github.fashionbrot.ribbon.ping.IPing Maven / Gradle / Ivy

Go to download

mars-ribbon-api 负载均衡工具 https://github.com/fashionbrot/mars-dynamic-config

There is a newer version: 0.1.3
Show newest version
package com.github.fashionbrot.ribbon.ping;

import com.github.fashionbrot.ribbon.loadbalancer.Server;


/**
 * @author fashionbrot
 * @version 0.1.0
 * @date 2019/12/8 22:45
 * Interface that defines how we "ping" a server to check if its alive
 */
public interface IPing {

    /**
     * Checks whether the given Server is "alive" i.e. should be
     * considered a candidate while loadbalancing
     *
     */
    boolean isAlive(Server server);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy