Class DelegatingServiceInstance

  • All Implemented Interfaces:
    org.springframework.cloud.client.ServiceInstance

    public class DelegatingServiceInstance
    extends Object
    implements org.springframework.cloud.client.ServiceInstance
    A ServiceInstance implementation that uses a delegate instance under the hood.
    Author:
    Spencer Gibb
    • Constructor Detail

      • DelegatingServiceInstance

        public DelegatingServiceInstance​(org.springframework.cloud.client.ServiceInstance delegate,
                                         String overrideScheme)
    • Method Detail

      • getServiceId

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

        public 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 URI getUri()
        Specified by:
        getUri in interface org.springframework.cloud.client.ServiceInstance
      • getMetadata

        public Map<String,​String> getMetadata()
        Specified by:
        getMetadata in interface org.springframework.cloud.client.ServiceInstance
      • getScheme

        public String getScheme()
        Specified by:
        getScheme in interface org.springframework.cloud.client.ServiceInstance