-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathEventClient.java
More file actions
33 lines (24 loc) · 1007 Bytes
/
EventClient.java
File metadata and controls
33 lines (24 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.ecwid.consul.v1.event;
import com.ecwid.consul.v1.QueryParams;
import com.ecwid.consul.v1.Response;
import com.ecwid.consul.v1.event.model.Event;
import com.ecwid.consul.v1.event.model.EventParams;
import java.util.List;
/**
* @author Vasily Vasilkov (vgv@ecwid.com)
*/
public interface EventClient {
Response<Event> eventFire(String event, String payload, EventParams eventParams, QueryParams queryParams);
// -------------------------------------------------------------------------------
/**
* @deprecated This method will be removed in consul-api 2.0. Use {@link #eventList(EventListRequest eventListRequest)}
*/
@Deprecated
Response<List<Event>> eventList(QueryParams queryParams);
/**
* @deprecated This method will be removed in consul-api 2.0. Use {@link #eventList(EventListRequest eventListRequest)}
*/
@Deprecated
Response<List<Event>> eventList(String event, QueryParams queryParams);
Response<List<Event>> eventList(EventListRequest eventListRequest);
}