Class ConsulRegistration
java.lang.Object
org.springframework.cloud.consul.serviceregistry.ConsulRegistration
- All Implemented Interfaces:
org.springframework.cloud.client.ServiceInstance,org.springframework.cloud.client.serviceregistry.Registration
- Direct Known Subclasses:
ConsulAutoRegistration
public class ConsulRegistration
extends Object
implements org.springframework.cloud.client.serviceregistry.Registration
- Author:
- Spencer Gibb
-
Constructor Summary
ConstructorsConstructorDescriptionConsulRegistration(com.ecwid.consul.v1.agent.model.NewService service, ConsulDiscoveryProperties properties) -
Method Summary
Modifier and TypeMethodDescriptiongetHost()intgetPort()protected ConsulDiscoveryPropertiescom.ecwid.consul.v1.agent.model.NewServicegetUri()booleanisSecure()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
getScheme
-
Constructor Details
-
ConsulRegistration
public ConsulRegistration(com.ecwid.consul.v1.agent.model.NewService service, ConsulDiscoveryProperties properties)
-
-
Method Details
-
getService
public com.ecwid.consul.v1.agent.model.NewService getService() -
getProperties
-
getInstanceId
- Specified by:
getInstanceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
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
-