Package io.vertx.ext.consul
Class EventOptions
- java.lang.Object
-
- io.vertx.ext.consul.EventOptions
-
public class EventOptions extends Object
Options used to trigger a new user event.- Author:
- Ruslan Sennov
-
-
Constructor Summary
Constructors Constructor Description EventOptions()
Default constructorEventOptions(JsonObject options)
Constructor from JSONEventOptions(EventOptions options)
Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNode()
Get regular expression to filter by node nameString
getPayload()
Get payload of eventString
getService()
Get regular expression to filter by serviceString
getTag()
Get regular expression to filter by tagEventOptions
setNode(String node)
Set regular expression to filter by node nameEventOptions
setPayload(String payload)
Set payload of eventEventOptions
setService(String service)
Set regular expression to filter by serviceEventOptions
setTag(String tag)
Set regular expression to filter by tagJsonObject
toJson()
Convert to JSON
-
-
-
Constructor Detail
-
EventOptions
public EventOptions()
Default constructor
-
EventOptions
public EventOptions(EventOptions options)
Copy constructor- Parameters:
options
- the one to copy
-
EventOptions
public EventOptions(JsonObject options)
Constructor from JSON- Parameters:
options
- the JSON
-
-
Method Detail
-
toJson
public JsonObject toJson()
Convert to JSON- Returns:
- the JSON
-
getNode
public String getNode()
Get regular expression to filter by node name- Returns:
- regular expression to filter by node name
-
setNode
public EventOptions setNode(String node)
Set regular expression to filter by node name- Parameters:
node
- regular expression to filter by node name- Returns:
- reference to this, for fluency
-
getService
public String getService()
Get regular expression to filter by service- Returns:
- regular expression to filter by service
-
setService
public EventOptions setService(String service)
Set regular expression to filter by service- Parameters:
service
- regular expression to filter by service- Returns:
- reference to this, for fluency
-
getTag
public String getTag()
Get regular expression to filter by tag- Returns:
- regular expression to filter by tag
-
setTag
public EventOptions setTag(String tag)
Set regular expression to filter by tag- Parameters:
tag
- regular expression to filter by tag- Returns:
- reference to this, for fluency
-
getPayload
public String getPayload()
Get payload of event- Returns:
- payload of event
-
setPayload
public EventOptions setPayload(String payload)
Set payload of event- Parameters:
payload
- payload of event- Returns:
- reference to this, for fluency
-
-