Class ReactiveDiscoveryClientAdapter

  • All Implemented Interfaces:
    org.springframework.cloud.client.discovery.DiscoveryClient, org.springframework.core.Ordered

    public class ReactiveDiscoveryClientAdapter
    extends java.lang.Object
    implements org.springframework.cloud.client.discovery.DiscoveryClient
    An adapter DiscoveryClient class based on ReactiveDiscoveryClient
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    DiscoveryClient
    • Field Summary

      • Fields inherited from interface org.springframework.cloud.client.discovery.DiscoveryClient

        DEFAULT_ORDER
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Summary

      Constructors 
      Constructor Description
      ReactiveDiscoveryClientAdapter​(org.springframework.cloud.client.discovery.ReactiveDiscoveryClient reactiveDiscoveryClient)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String description()  
      java.util.List<org.springframework.cloud.client.ServiceInstance> getInstances​(java.lang.String serviceId)  
      int getOrder()  
      java.util.List<java.lang.String> getServices()  
      void probe()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReactiveDiscoveryClientAdapter

        public ReactiveDiscoveryClientAdapter​(org.springframework.cloud.client.discovery.ReactiveDiscoveryClient reactiveDiscoveryClient)
    • Method Detail

      • description

        public java.lang.String description()
        Specified by:
        description in interface org.springframework.cloud.client.discovery.DiscoveryClient
      • getInstances

        public java.util.List<org.springframework.cloud.client.ServiceInstance> getInstances​(java.lang.String serviceId)
        Specified by:
        getInstances in interface org.springframework.cloud.client.discovery.DiscoveryClient
      • getServices

        public java.util.List<java.lang.String> getServices()
        Specified by:
        getServices in interface org.springframework.cloud.client.discovery.DiscoveryClient
      • probe

        public void probe()
        Specified by:
        probe in interface org.springframework.cloud.client.discovery.DiscoveryClient
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.cloud.client.discovery.DiscoveryClient
        Specified by:
        getOrder in interface org.springframework.core.Ordered