public class EventSubmitter extends Object
| Constructor and Description |
|---|
EventSubmitter(EventsApi eventsApi,
long backoffTime,
int maxRetries) |
| Modifier and Type | Method and Description |
|---|---|
EventsApi |
getEventsApi() |
void |
setEventsApi(EventsApi eventsApi) |
EventResponse |
submitEvent(Event body)
Send an event to webhooks and retry if the post fails.
|
EventListResponse |
submitEventBatch(EventBatch batch)
Send an event batch to webhooks and retry if the post fails.
|
public EventSubmitter(EventsApi eventsApi, long backoffTime, int maxRetries)
public EventsApi getEventsApi()
public void setEventsApi(EventsApi eventsApi)
public EventResponse submitEvent(Event body) throws ApiException
ApiExceptionpublic EventListResponse submitEventBatch(EventBatch batch) throws ApiException
ApiExceptionCopyright © 2017 LeanIX GmbH. All rights reserved.