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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddress(InetAddress address) booleanSee 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.inthashCode()voidsetAddress(InetAddress address) See https://www.consul.io/api/agent/service.html#address.voidSee https://www.consul.io/api/agent/service.html#id.voidSee https://www.consul.io/api/agent/service.html#meta.voidSee https://www.consul.io/api/agent/service.html#address.voidSee 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
AbstractServiceEntryinstance
-
address
- Parameters:
address- TheInetAddressof the service- Returns:
- The
AbstractServiceEntryinstance
-
address
- Parameters:
address- The address of the service- Returns:
- The
AbstractServiceEntryinstance
-
port
- Parameters:
port- The port of the service- Returns:
- The
AbstractServiceEntryinstance
-
tags
- Parameters:
tags- The service tags- Returns:
- The
AbstractServiceEntryinstance
-
meta
- Parameters:
meta- The service metadata- Returns:
- The
AbstractServiceEntryinstance
-
equals
-
hashCode
public int hashCode()
-