Class MultipleRegistration
- java.lang.Object
-
- io.microsphere.spring.cloud.client.service.registry.MultipleRegistration
-
- All Implemented Interfaces:
org.springframework.cloud.client.ServiceInstance,org.springframework.cloud.client.serviceregistry.Registration
public class MultipleRegistration extends java.lang.Object implements org.springframework.cloud.client.serviceregistry.RegistrationThe DelegatingRegistrationfor the multiple service registration- Since:
- 1.0.0
- Author:
- 韩超
- See Also:
MultipleAutoServiceRegistration,MultipleServiceRegistry
-
-
Constructor Summary
Constructors Constructor Description MultipleRegistration(java.util.Collection<org.springframework.cloud.client.serviceregistry.Registration> registrations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.cloud.client.serviceregistry.RegistrationgetDefaultRegistration()java.lang.StringgetHost()java.lang.StringgetInstanceId()java.util.Map<java.lang.String,java.lang.String>getMetadata()intgetPort()java.lang.StringgetServiceId()java.net.URIgetUri()booleanisSecure()<T extends org.springframework.cloud.client.serviceregistry.Registration>
Tspecial(java.lang.Class<T> specialClass)
-
-
-
Method Detail
-
getInstanceId
public java.lang.String getInstanceId()
- Specified by:
getInstanceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getServiceId
public java.lang.String getServiceId()
- Specified by:
getServiceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getHost
public java.lang.String getHost()
- Specified by:
getHostin interfaceorg.springframework.cloud.client.ServiceInstance
-
getPort
public int getPort()
- Specified by:
getPortin interfaceorg.springframework.cloud.client.ServiceInstance
-
isSecure
public boolean isSecure()
- Specified by:
isSecurein interfaceorg.springframework.cloud.client.ServiceInstance
-
getUri
public java.net.URI getUri()
- Specified by:
getUriin interfaceorg.springframework.cloud.client.ServiceInstance
-
getMetadata
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
- Specified by:
getMetadatain interfaceorg.springframework.cloud.client.ServiceInstance
-
getDefaultRegistration
public org.springframework.cloud.client.serviceregistry.Registration getDefaultRegistration()
-
special
public <T extends org.springframework.cloud.client.serviceregistry.Registration> T special(java.lang.Class<T> specialClass)
-
-