接口 ServerListProvider

所有超级接口:
Closeable
所有已知实现类:
AbstractServerListProvider, EndpointServerListProvider, PropertiesListProvider

public interface ServerListProvider extends Closeable
Server list provider.
作者:
totalo
  • 方法详细资料

    • init

      void init(NacosClientProperties properties, NacosRestTemplate nacosRestTemplate) throws NacosException
      Init.
      参数:
      properties - nacos client properties
      nacosRestTemplate - nacos rest template
      抛出:
      NacosException - nacos exception
    • getServerList

      List<String> getServerList()
      Get server list.
      返回:
      server list
    • getServerName

      default String getServerName()
      Get server name.
      返回:
      server name
    • getNamespace

      default String getNamespace()
      Get namespace.
      返回:
      namespace
    • getContextPath

      default String getContextPath()
      Get context path.
      返回:
      context path
    • getOrder

      int getOrder()
      Get order.
      返回:
      order
    • match

      boolean match(NacosClientProperties properties)
      Match.
      参数:
      properties - nacos client properties
      返回:
      match
    • isFixed

      default boolean isFixed()
      check the server list is fixed or not.
      返回:
      true if the server list is fixed
    • getAddressSource

      default String getAddressSource()
      Get address source.
      返回:
      address source