public class EventsTask extends Object
| Modifier and Type | Field and Description |
|---|---|
static Long |
MAX_SIZE_BYTES |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static EventsTask |
create(org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpclient,
URI eventsRootTarget,
int maxQueueSize,
long flushIntervalMillis,
int waitBeforeShutdown,
TelemetryRuntimeProducer telemetryRuntimeProducer,
EventsStorageConsumer eventsStorageConsumer,
EventsStorageProducer _eventsStorageProducer) |
void |
flush()
the existence of this message in the queue triggers a send event in the consumer thread.
|
public static final Long MAX_SIZE_BYTES
public static EventsTask create(org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpclient, URI eventsRootTarget, int maxQueueSize, long flushIntervalMillis, int waitBeforeShutdown, TelemetryRuntimeProducer telemetryRuntimeProducer, EventsStorageConsumer eventsStorageConsumer, EventsStorageProducer _eventsStorageProducer) throws URISyntaxException
URISyntaxExceptionpublic void flush()
public void close()
Copyright © 2021. All rights reserved.