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

sviolet.slate.springboot.modelx.loadbalance.auto.HttpClients Maven / Gradle / Ivy

There is a newer version: 11.4
Show newest version
package sviolet.slate.springboot.modelx.loadbalance.auto;

import sviolet.slate.common.x.net.loadbalance.classic.SimpleOkHttpClient;

import java.util.Set;

/**
 * 使用slate.httpclients自动配置的Http请求客户端集合
 */
public interface HttpClients {

    /**
     * 获取Http请求客户端
     * @param tag tag(标识)
     * @return SimpleOkHttpClient
     */
    SimpleOkHttpClient get(String tag);

    /**
     * @return 返回集合中的客户端数量
     */
    int size();

    /**
     * @return 返回集合中所有客户端的tag
     */
    Set tags();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy