Class 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.Registration
    The Delegating Registration for 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.Registration getDefaultRegistration()  
      java.lang.String getHost()  
      java.lang.String getInstanceId()  
      java.util.Map<java.lang.String,​java.lang.String> getMetadata()  
      int getPort()  
      java.lang.String getServiceId()  
      java.net.URI getUri()  
      boolean isSecure()  
      <T extends org.springframework.cloud.client.serviceregistry.Registration>
      T
      special​(java.lang.Class<T> specialClass)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.cloud.client.ServiceInstance

        getScheme
    • Constructor Detail

      • MultipleRegistration

        public MultipleRegistration​(java.util.Collection<org.springframework.cloud.client.serviceregistry.Registration> registrations)
    • Method Detail

      • getInstanceId

        public java.lang.String getInstanceId()
        Specified by:
        getInstanceId in interface org.springframework.cloud.client.ServiceInstance
      • getServiceId

        public java.lang.String getServiceId()
        Specified by:
        getServiceId in interface org.springframework.cloud.client.ServiceInstance
      • getHost

        public java.lang.String getHost()
        Specified by:
        getHost in interface org.springframework.cloud.client.ServiceInstance
      • getPort

        public int getPort()
        Specified by:
        getPort in interface org.springframework.cloud.client.ServiceInstance
      • isSecure

        public boolean isSecure()
        Specified by:
        isSecure in interface org.springframework.cloud.client.ServiceInstance
      • getUri

        public java.net.URI getUri()
        Specified by:
        getUri in interface org.springframework.cloud.client.ServiceInstance
      • getMetadata

        public java.util.Map<java.lang.String,​java.lang.String> getMetadata()
        Specified by:
        getMetadata in interface org.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)