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 Object
implements org.springframework.cloud.client.serviceregistry.Registration
The Delegating
Registration for the multiple service registration- Since:
- 1.0.0
- Author:
- 韩超
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMultipleRegistration(Collection<org.springframework.cloud.client.serviceregistry.Registration> registrations) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cloud.client.ServiceInstance
getInstanceId, getScheme
-
Constructor Details
-
MultipleRegistration
public MultipleRegistration(Collection<org.springframework.cloud.client.serviceregistry.Registration> registrations)
-
-
Method Details
-
getServiceId
- Specified by:
getServiceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
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
- Specified by:
getUriin interfaceorg.springframework.cloud.client.ServiceInstance
-
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(Class<T> specialClass)
-