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 java.lang.Object implements org.springframework.cloud.client.serviceregistry.ServiceRegistryIn-MemoryServiceRegistry- Since:
- 1.0.0
- Author:
- Mercy
-
-
Constructor Summary
Constructors Constructor Description InMemoryServiceRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidderegister(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.ObjectgetStatus(org.springframework.cloud.client.serviceregistry.Registration registration)voidregister(org.springframework.cloud.client.serviceregistry.Registration registration)voidsetStatus(org.springframework.cloud.client.serviceregistry.Registration registration, java.lang.String status)
-
-
-
Method Detail
-
register
public void register(org.springframework.cloud.client.serviceregistry.Registration registration)
- Specified by:
registerin interfaceorg.springframework.cloud.client.serviceregistry.ServiceRegistry
-
deregister
public void deregister(org.springframework.cloud.client.serviceregistry.Registration registration)
- Specified by:
deregisterin interfaceorg.springframework.cloud.client.serviceregistry.ServiceRegistry
-
close
public void close()
- Specified by:
closein interfaceorg.springframework.cloud.client.serviceregistry.ServiceRegistry
-
setStatus
public void setStatus(org.springframework.cloud.client.serviceregistry.Registration registration, java.lang.String status)- Specified by:
setStatusin interfaceorg.springframework.cloud.client.serviceregistry.ServiceRegistry
-
getStatus
public java.lang.Object getStatus(org.springframework.cloud.client.serviceregistry.Registration registration)
- Specified by:
getStatusin interfaceorg.springframework.cloud.client.serviceregistry.ServiceRegistry
-
getMetadata
protected java.util.Map<java.lang.String,java.lang.String> getMetadata(org.springframework.cloud.client.serviceregistry.Registration registration)
-
-