Package io.vertx.ext.consul.connect
Class UpstreamOptions
- java.lang.Object
-
- io.vertx.ext.consul.connect.UpstreamOptions
-
public class UpstreamOptions extends Object
-
-
Constructor Summary
Constructors Constructor Description UpstreamOptions()
Default constructorUpstreamOptions(JsonObject options)
Constructor from JSON
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDc()
String
getDestinationName()
int
getLocalBindPort()
UpstreamOptions
setDc(String dc)
UpstreamOptions
setDestinationName(String destinationName)
UpstreamOptions
setLocalBindPort(int localBindPort)
JsonObject
toJson()
Convert to JSON
-
-
-
Constructor Detail
-
UpstreamOptions
public UpstreamOptions()
Default constructor
-
UpstreamOptions
public UpstreamOptions(JsonObject options)
Constructor from JSON- Parameters:
options
- the JSON
-
-
Method Detail
-
toJson
public JsonObject toJson()
Convert to JSON- Returns:
- the JSON
-
getDestinationName
public String getDestinationName()
-
setDestinationName
public UpstreamOptions setDestinationName(String destinationName)
-
getDc
public String getDc()
-
setDc
public UpstreamOptions setDc(String dc)
-
getLocalBindPort
public int getLocalBindPort()
-
setLocalBindPort
public UpstreamOptions setLocalBindPort(int localBindPort)
-
-