Class ServiceOptions
java.lang.Object
io.vertx.ext.consul.ServiceOptions
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorServiceOptions(JsonObject options) Constructor from JSONServiceOptions(ServiceOptions options) Copy constructor -
Method Summary
Modifier and TypeMethodDescriptionGet service addressGet checks options of serviceGet check options of serviceGet consul-connect options of servicelongGet the internal index value that represents when the entry was created.getId()Get the ID of sessiongetMeta()Get arbitrary KV metadata linked to the service instance.longGet the last index that modified this key.getName()Get service nameintgetPort()Get service portgetTags()Get list of tags associated with servicesetAddress(String address) Set service addresssetCheckListOptions(List<CheckOptions> checkListOptions) Set checks options of servicesetCheckOptions(CheckOptions checkOptions) Set check options of servicesetConnectOptions(ConnectOptions connectOptions) Set consul-connect options of servicesetCreateIndex(long createIndex) Set the internal index value that represents when the entry was created.Set the ID of sessionSpecifies arbitrary KV metadata linked to the service instance.setModifyIndex(long modifyIndex) Set the last index that modified this key.Set service namesetPort(int port) Set service portSet list of tags associated with servicetoJson()Convert to JSON
-
Constructor Details
-
ServiceOptions
public ServiceOptions()Default constructor -
ServiceOptions
Copy constructor- Parameters:
options- the one to copy
-
ServiceOptions
-
-
Method Details
-
toJson
-
getId
-
setId
Set the ID of session- Parameters:
id- the ID of session- Returns:
- reference to this, for fluency
-
getName
-
setName
Set service name- Parameters:
name- service name- Returns:
- reference to this, for fluency
-
getTags
-
setTags
Set list of tags associated with service- Parameters:
tags- list of tags- Returns:
- reference to this, for fluency
-
getAddress
-
setAddress
Set service address- Parameters:
address- service address- Returns:
- reference to this, for fluency
-
getMeta
-
setMeta
Specifies arbitrary KV metadata linked to the service instance.- Parameters:
meta- arbitrary KV metadata- Returns:
- reference to this, for fluency
-
getPort
public int getPort()Get service port- Returns:
- service port
-
setPort
Set service port- Parameters:
port- service port- Returns:
- reference to this, for fluency
-
getCheckOptions
-
setCheckOptions
Set check options of service- Parameters:
checkOptions- check options- Returns:
- reference to this, for fluency
-
getCheckListOptions
Get checks options of service- Returns:
- checks options
-
setCheckListOptions
Set checks options of service- Parameters:
checkListOptions- check options- Returns:
- reference to this, for fluency
-
getCreateIndex
public long getCreateIndex()Get the internal index value that represents when the entry was created.- Returns:
- the internal index value that represents when the entry was created.
-
setCreateIndex
Set the internal index value that represents when the entry was created.- Parameters:
createIndex- the internal index value that represents when the entry was created.- Returns:
- reference to this, for fluency
-
getModifyIndex
public long getModifyIndex()Get the last index that modified this key.- Returns:
- the last index that modified this key.
-
setModifyIndex
Set the last index that modified this key.- Parameters:
modifyIndex- the last index that modified this key.- Returns:
- reference to this, for fluency
-
getConnectOptions
Get consul-connect options of service- Returns:
- consul-connect options
-
setConnectOptions
Set consul-connect options of service- Parameters:
connectOptions- consul-connect options- Returns:
- reference to this, for fluency
-