Class InMemoryServiceRegistry

java.lang.Object
io.microsphere.spring.cloud.client.service.registry.InMemoryServiceRegistry
All Implemented Interfaces:
org.springframework.cloud.client.serviceregistry.ServiceRegistry

public class InMemoryServiceRegistry extends Object implements org.springframework.cloud.client.serviceregistry.ServiceRegistry
In-Memory ServiceRegistry
Since:
1.0.0
Author:
Mercy
  • Constructor Details

    • InMemoryServiceRegistry

      public InMemoryServiceRegistry()
  • Method Details

    • register

      public void register(org.springframework.cloud.client.serviceregistry.Registration registration)
      Specified by:
      register in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry
    • deregister

      public void deregister(org.springframework.cloud.client.serviceregistry.Registration registration)
      Specified by:
      deregister in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry
    • close

      public void close()
      Specified by:
      close in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry
    • setStatus

      public void setStatus(org.springframework.cloud.client.serviceregistry.Registration registration, String status)
      Specified by:
      setStatus in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry
    • getStatus

      public Object getStatus(org.springframework.cloud.client.serviceregistry.Registration registration)
      Specified by:
      getStatus in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry
    • getMetadata

      protected Map<String,String> getMetadata(org.springframework.cloud.client.serviceregistry.Registration registration)