Class AbstractServiceEntry
java.lang.Object
io.micronaut.discovery.consul.client.v1.AbstractServiceEntry
- Direct Known Subclasses:
NewServiceEntry
,ServiceEntry
Base class for a service entry in consul.
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(InetAddress address) boolean
See https://www.consul.io/api/agent/service.html#address.getID()
See https://www.consul.io/api/agent/service.html#id.getMeta()
See https://www.consul.io/api/agent/service.html#meta.getName()
See https://www.consul.io/api/agent/service.html#name.getPort()
See https://www.consul.io/api/agent/service.html#address.getTags()
See https://www.consul.io/api/agent/service.html#tags.int
hashCode()
void
setAddress
(InetAddress address) See https://www.consul.io/api/agent/service.html#address.void
See https://www.consul.io/api/agent/service.html#id.void
See https://www.consul.io/api/agent/service.html#meta.void
See https://www.consul.io/api/agent/service.html#address.void
See https://www.consul.io/api/agent/service.html#tags.
-
Field Details
-
name
-
-
Constructor Details
-
AbstractServiceEntry
- Parameters:
name
- The service name
-
-
Method Details
-
getID
See https://www.consul.io/api/agent/service.html#id.- Returns:
- The ID of the service
-
setID
See https://www.consul.io/api/agent/service.html#id.- Parameters:
id
- The ID of the service
-
getAddress
See https://www.consul.io/api/agent/service.html#address.- Returns:
- The address of the service
-
setAddress
See https://www.consul.io/api/agent/service.html#address.- Parameters:
address
- The address of the service
-
getPort
See https://www.consul.io/api/agent/service.html#address.- Returns:
- The port of the service
-
setPort
See https://www.consul.io/api/agent/service.html#address.- Parameters:
port
- The port of the service
-
getTags
See https://www.consul.io/api/agent/service.html#tags.- Returns:
- The service tags
-
setTags
See https://www.consul.io/api/agent/service.html#tags.- Parameters:
tags
- The service tags
-
getMeta
See https://www.consul.io/api/agent/service.html#meta.- Returns:
- The service metadata
-
setMeta
See https://www.consul.io/api/agent/service.html#meta.- Parameters:
meta
- The service metadata
-
getName
See https://www.consul.io/api/agent/service.html#name.- Returns:
- The name of the service
-
id
- Parameters:
id
- The id of the service- Returns:
- The
AbstractServiceEntry
instance
-
address
- Parameters:
address
- TheInetAddress
of the service- Returns:
- The
AbstractServiceEntry
instance
-
address
- Parameters:
address
- The address of the service- Returns:
- The
AbstractServiceEntry
instance
-
port
- Parameters:
port
- The port of the service- Returns:
- The
AbstractServiceEntry
instance
-
tags
- Parameters:
tags
- The service tags- Returns:
- The
AbstractServiceEntry
instance
-
meta
- Parameters:
meta
- The service metadata- Returns:
- The
AbstractServiceEntry
instance
-
equals
-
hashCode
public int hashCode()
-