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
Constructors -
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 voidMethods 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
NewServiceEntryinstance
-
check
See https://www.consul.io/api/agent/service.html#checks.- Parameters:
check- The health check- Returns:
- The
NewServiceEntryinstance
-
id
- Overrides:
idin classAbstractServiceEntry- Parameters:
id- The id of the service- Returns:
- The
AbstractServiceEntryinstance
-
address
- Overrides:
addressin classAbstractServiceEntry- Parameters:
address- TheInetAddressof the service- Returns:
- The
AbstractServiceEntryinstance
-
address
- Overrides:
addressin classAbstractServiceEntry- Parameters:
address- The address of the service- Returns:
- The
AbstractServiceEntryinstance
-
port
- Overrides:
portin classAbstractServiceEntry- Parameters:
port- The port of the service- Returns:
- The
AbstractServiceEntryinstance
-
tags
- Overrides:
tagsin classAbstractServiceEntry- Parameters:
tags- The service tags- Returns:
- The
AbstractServiceEntryinstance
-
tags
- Parameters:
tags- The tags- Returns:
- The
NewServiceEntryinstance
-
setChecks
- Parameters:
checks- The list of Http checks
-