public class EventClientImpl extends Object implements EventClient
| Modifier and Type | Field and Description |
|---|---|
static Long |
MAX_SIZE_BYTES |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static EventClientImpl |
create(org.apache.http.impl.client.CloseableHttpClient httpclient,
URI eventsRootTarget,
int maxQueueSize,
long flushIntervalMillis,
int waitBeforeShutdown) |
void |
flush()
the existence of this message in the queue triggers a send event in the consumer thread.
|
boolean |
track(Event event,
int eventSize) |
public static final Long MAX_SIZE_BYTES
public static EventClientImpl create(org.apache.http.impl.client.CloseableHttpClient httpclient, URI eventsRootTarget, int maxQueueSize, long flushIntervalMillis, int waitBeforeShutdown) throws URISyntaxException
URISyntaxExceptionpublic void flush()
public boolean track(Event event, int eventSize)
track in interface EventClientpublic void close()
close in interface EventClientCopyright © 2019. All rights reserved.