Class ReactiveDiscoveryClientAdapter

java.lang.Object
io.microsphere.spring.cloud.client.discovery.ReactiveDiscoveryClientAdapter
All Implemented Interfaces:
org.springframework.cloud.client.discovery.DiscoveryClient, org.springframework.core.Ordered

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

    • ReactiveDiscoveryClientAdapter

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

    • description

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

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

      public List<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