Class DelegatingServiceInstance
java.lang.Object
org.springframework.cloud.gateway.support.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 Summary
ConstructorsConstructorDescriptionDelegatingServiceInstance(org.springframework.cloud.client.ServiceInstance delegate, String overrideScheme) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cloud.client.ServiceInstance
getInstanceId
-
Constructor Details
-
DelegatingServiceInstance
public DelegatingServiceInstance(org.springframework.cloud.client.ServiceInstance delegate, String overrideScheme)
-
-
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
-
getScheme
- Specified by:
getSchemein interfaceorg.springframework.cloud.client.ServiceInstance
-