Package io.vertx.ext.consul
Class EventListOptions
- java.lang.Object
-
- io.vertx.ext.consul.EventListOptions
-
public class EventListOptions extends Object
Holds options for events list request- Author:
- Ruslan Sennov
-
-
Constructor Summary
Constructors Constructor Description EventListOptions()Default constructorEventListOptions(JsonObject json)Constructor from JSON
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockingQueryOptionsgetBlockingOptions()Get options for blocking queryStringgetName()Get event name for filtering on eventsEventListOptionssetBlockingOptions(BlockingQueryOptions options)Set options for blocking queryEventListOptionssetName(String name)Set event name for filtering on eventsJsonObjecttoJson()Convert to JSON
-
-
-
Constructor Detail
-
EventListOptions
public EventListOptions()
Default constructor
-
EventListOptions
public EventListOptions(JsonObject json)
Constructor from JSON- Parameters:
json- the JSON
-
-
Method Detail
-
toJson
public JsonObject toJson()
Convert to JSON- Returns:
- the JSON
-
getName
public String getName()
Get event name for filtering on events- Returns:
- name of the event
-
getBlockingOptions
public BlockingQueryOptions getBlockingOptions()
Get options for blocking query- Returns:
- the blocking options
-
setName
public EventListOptions setName(String name)
Set event name for filtering on events- Parameters:
name- name of the event- Returns:
- reference to this, for fluency
-
setBlockingOptions
public EventListOptions setBlockingOptions(BlockingQueryOptions options)
Set options for blocking query- Parameters:
options- the blocking options- Returns:
- reference to this, for fluency
-
-