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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()voidderegister(org.springframework.cloud.client.serviceregistry.Registration registration) getMetadata(org.springframework.cloud.client.serviceregistry.Registration registration) getStatus(org.springframework.cloud.client.serviceregistry.Registration registration) voidregister(org.springframework.cloud.client.serviceregistry.Registration registration) voidsetStatus(org.springframework.cloud.client.serviceregistry.Registration registration, String status) 
- 
Constructor Details- 
InMemoryServiceRegistrypublic InMemoryServiceRegistry()
 
- 
- 
Method Details- 
registerpublic void register(org.springframework.cloud.client.serviceregistry.Registration registration) - Specified by:
- registerin interface- org.springframework.cloud.client.serviceregistry.ServiceRegistry
 
- 
deregisterpublic void deregister(org.springframework.cloud.client.serviceregistry.Registration registration) - Specified by:
- deregisterin interface- org.springframework.cloud.client.serviceregistry.ServiceRegistry
 
- 
closepublic void close()- Specified by:
- closein interface- org.springframework.cloud.client.serviceregistry.ServiceRegistry
 
- 
setStatuspublic void setStatus(org.springframework.cloud.client.serviceregistry.Registration registration, String status) - Specified by:
- setStatusin interface- org.springframework.cloud.client.serviceregistry.ServiceRegistry
 
- 
getStatus- Specified by:
- getStatusin interface- org.springframework.cloud.client.serviceregistry.ServiceRegistry
 
- 
getMetadata
 
-