Package org.kiwiproject.consul
Class EventClient
java.lang.Object
org.kiwiproject.consul.EventClient
HTTP Client for /v1/event/ endpoints.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionFires a Consul event.Fires a Consul event.fireEvent(String name, EventOptions eventOptions) Fires a Consul event.fireEvent(String name, EventOptions eventOptions, String payload) Fires a Consul event.Lists events for the Consul agent.listEvents(String name) Lists events for the Consul agent.listEvents(String name, QueryOptions queryOptions) Lists events for the Consul agent.voidlistEvents(String name, QueryOptions queryOptions, EventResponseCallback callback) Asynchronously lists events for the Consul agent.voidlistEvents(EventResponseCallback callback) Asynchronously lists events for the Consul agent.listEvents(QueryOptions queryOptions) Lists events for the Consul agent.voidlistEvents(QueryOptions queryOptions, EventResponseCallback callback) Asynchronously lists events for the Consul agent.
-
Field Details
-
http
-
-
Method Details
-
fireEvent
Fires a Consul event.PUT /v1/event/fire/{name}
- Parameters:
name- The name of the event.eventOptions- The event specific options to use.payload- Optional string payload.- Returns:
- The newly created
Event.
-
fireEvent
Fires a Consul event.PUT /v1/event/fire/{name}
- Parameters:
name- The name of the event.- Returns:
- The newly created
Event.
-
fireEvent
Fires a Consul event.PUT /v1/event/fire/{name}
- Parameters:
name- The name of the event.eventOptions- The event specific options to use.- Returns:
- The newly created
Event.
-
fireEvent
Fires a Consul event.PUT /v1/event/fire/{name}
- Parameters:
name- The name of the event.payload- Optional string payload.- Returns:
- The newly created
Event.
-
listEvents
Lists events for the Consul agent.GET /v1/event/list?name={name}
- Parameters:
name- Event name to filter.queryOptions- The query options to use.- Returns:
- A
ConsulResponseobject containing a list ofEventobjects.
-
listEvents
Lists events for the Consul agent.GET /v1/event/list?name={name}
- Parameters:
name- Event name to filter.- Returns:
- A
ConsulResponseobject containing a list ofEventobjects.
-
listEvents
Lists events for the Consul agent.GET /v1/event/list
- Parameters:
queryOptions- The query options to use.- Returns:
- A
ConsulResponseobject containing a list ofEventobjects.
-
listEvents
Lists events for the Consul agent.GET /v1/event/list
- Returns:
- A
ConsulResponseobject containing a list ofEventobjects.
-
listEvents
Asynchronously lists events for the Consul agent.GET /v1/event/list?name={name}
- Parameters:
name- Event name to filter.queryOptions- The query options to use.callback- The callback to asynchronously process the result.
-
listEvents
Asynchronously lists events for the Consul agent.GET /v1/event/list
- Parameters:
queryOptions- The query options to use.callback- The callback to asynchronously process the result.
-
listEvents
Asynchronously lists events for the Consul agent.GET /v1/event/list
- Parameters:
callback- The callback to asynchronously process the result.
-
getConfig
-
getEventHandler
-