Class InMemoryServiceRegistry

  • All Implemented Interfaces:
    org.springframework.cloud.client.serviceregistry.ServiceRegistry

    public class InMemoryServiceRegistry
    extends java.lang.Object
    implements org.springframework.cloud.client.serviceregistry.ServiceRegistry
    In-Memory ServiceRegistry
    Since:
    1.0.0
    Author:
    Mercy
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void deregister​(org.springframework.cloud.client.serviceregistry.Registration registration)  
      protected java.util.Map<java.lang.String,​java.lang.String> getMetadata​(org.springframework.cloud.client.serviceregistry.Registration registration)  
      java.lang.Object getStatus​(org.springframework.cloud.client.serviceregistry.Registration registration)  
      void register​(org.springframework.cloud.client.serviceregistry.Registration registration)  
      void setStatus​(org.springframework.cloud.client.serviceregistry.Registration registration, java.lang.String status)  
      • Methods inherited from class java.lang.Object

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

      • InMemoryServiceRegistry

        public InMemoryServiceRegistry()
    • Method Detail

      • 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,
                              java.lang.String status)
        Specified by:
        setStatus in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry
      • getStatus

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

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