public class EventClient extends Object
| Modifier and Type | Method and Description |
|---|---|
Event |
fireEvent(String name)
Fires a Consul event.
|
Event |
fireEvent(String name,
EventOptions eventOptions)
Fires a Consul event.
|
Event |
fireEvent(String name,
EventOptions eventOptions,
String payload)
Fires a Consul event.
|
Event |
fireEvent(String name,
String payload)
Fires a Consul event.
|
ClientConfig |
getConfig() |
ClientEventHandler |
getEventHandler() |
EventResponse |
listEvents()
Lists events for the Consul agent.
|
void |
listEvents(EventResponseCallback callback)
Asynchronously lists events for the Consul agent.
|
EventResponse |
listEvents(QueryOptions queryOptions)
Lists events for the Consul agent.
|
void |
listEvents(QueryOptions queryOptions,
EventResponseCallback callback)
Asynchronously lists events for the Consul agent.
|
EventResponse |
listEvents(String name)
Lists events for the Consul agent.
|
EventResponse |
listEvents(String name,
QueryOptions queryOptions)
Lists events for the Consul agent.
|
void |
listEvents(String name,
QueryOptions queryOptions,
EventResponseCallback callback)
Asynchronously lists events for the Consul agent.
|
protected final Http http
public Event fireEvent(String name, EventOptions eventOptions, String payload)
name - The name of the event.eventOptions - The event specific options to use.payload - Optional string payload.Event.public Event fireEvent(String name)
name - The name of the event.Event.public Event fireEvent(String name, EventOptions eventOptions)
name - The name of the event.eventOptions - The event specific options to use.Event.public Event fireEvent(String name, String payload)
name - The name of the event.payload - Optional string payload.Event.public EventResponse listEvents(String name, QueryOptions queryOptions)
name - Event name to filter.queryOptions - The query options to use.ConsulResponse object containing
a list of Event objects.public EventResponse listEvents(String name)
name - Event name to filter.ConsulResponse object containing
a list of Event objects.public EventResponse listEvents(QueryOptions queryOptions)
queryOptions - The query options to use.ConsulResponse object containing
a list of Event objects.public EventResponse listEvents()
ConsulResponse object containing
a list of Event objects.public void listEvents(String name, QueryOptions queryOptions, EventResponseCallback callback)
name - Event name to filter.queryOptions - The query options to use.callback - The callback to asynchronously process the result.public void listEvents(QueryOptions queryOptions, EventResponseCallback callback)
queryOptions - The query options to use.callback - The callback to asynchronously process the result.public void listEvents(EventResponseCallback callback)
callback - The callback to asynchronously process the result.public ClientConfig getConfig()
public ClientEventHandler getEventHandler()
Copyright © 2018. All rights reserved.