Class NewServiceEntry
java.lang.Object
io.micronaut.discovery.consul.client.v1.AbstractServiceEntry
io.micronaut.discovery.consul.client.v1.NewServiceEntry
A service entry in Consul. See https://www.consul.io/api/catalog.html#service.
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from class io.micronaut.discovery.consul.client.v1.AbstractServiceEntry
name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(InetAddress address) See https://www.consul.io/api/agent/service.html#checks.See https://www.consul.io/api/agent/service.html#checks.See https://www.consul.io/api/agent/service.html#checks.protected void
Methods inherited from class io.micronaut.discovery.consul.client.v1.AbstractServiceEntry
equals, getAddress, getID, getMeta, getName, getPort, getTags, hashCode, meta, setAddress, setID, setMeta, setPort, setTags
-
Constructor Details
-
NewServiceEntry
- Parameters:
serviceName
- The service name
-
-
Method Details
-
getChecks
See https://www.consul.io/api/agent/service.html#checks.- Returns:
- The health checks to perform
-
checks
See https://www.consul.io/api/agent/service.html#checks.- Parameters:
checks
- The health checks- Returns:
- The
NewServiceEntry
instance
-
check
See https://www.consul.io/api/agent/service.html#checks.- Parameters:
check
- The health check- Returns:
- The
NewServiceEntry
instance
-
id
- Overrides:
id
in classAbstractServiceEntry
- Parameters:
id
- The id of the service- Returns:
- The
AbstractServiceEntry
instance
-
address
- Overrides:
address
in classAbstractServiceEntry
- Parameters:
address
- TheInetAddress
of the service- Returns:
- The
AbstractServiceEntry
instance
-
address
- Overrides:
address
in classAbstractServiceEntry
- Parameters:
address
- The address of the service- Returns:
- The
AbstractServiceEntry
instance
-
port
- Overrides:
port
in classAbstractServiceEntry
- Parameters:
port
- The port of the service- Returns:
- The
AbstractServiceEntry
instance
-
tags
- Overrides:
tags
in classAbstractServiceEntry
- Parameters:
tags
- The service tags- Returns:
- The
AbstractServiceEntry
instance
-
tags
- Parameters:
tags
- The tags- Returns:
- The
NewServiceEntry
instance
-
setChecks
- Parameters:
checks
- The list of Http checks
-