public interface EventSender
extends java.io.Closeable
EventProcessorBuilder.eventSender(EventSenderFactory)
Modifier and Type | Interface and Description |
---|---|
static class |
EventSender.EventDataKind
Enumerated values corresponding to different kinds of event data.
|
static class |
EventSender.Result
Encapsulates the results of a call to
sendEventData(EventDataKind, String, int, URI) . |
Modifier and Type | Method and Description |
---|---|
EventSender.Result |
sendEventData(EventSender.EventDataKind kind,
java.lang.String data,
int eventCount,
java.net.URI eventsBaseUri)
Attempt to deliver an event data payload.
|
EventSender.Result sendEventData(EventSender.EventDataKind kind, java.lang.String data, int eventCount, java.net.URI eventsBaseUri)
This method will be called synchronously from an event delivery worker thread.
kind
- specifies which type of event data is being sentdata
- the preformatted JSON data, as a stringeventCount
- the number of individual events in the dataeventsBaseUri
- the configured events endpoint base URIEventSender.Result