Package io.split.client
Class EventClientImpl
java.lang.Object
io.split.client.EventClientImpl
- All Implemented Interfaces:
EventClient
public class EventClientImpl extends Object implements EventClient
Responsible for sending events added via .track() to Split collection services
-
Field Summary
Fields Modifier and Type Field Description static LongMAX_SIZE_BYTES -
Method Summary
Modifier and Type Method Description voidclose()static EventClientImplcreate(org.apache.http.impl.client.CloseableHttpClient httpclient, URI eventsRootTarget, int maxQueueSize, long flushIntervalMillis, int waitBeforeShutdown)voidflush()the existence of this message in the queue triggers a send event in the consumer thread.booleantrack(Event event, int eventSize)
-
Field Details
-
Method Details
-
create
public static EventClientImpl create(org.apache.http.impl.client.CloseableHttpClient httpclient, URI eventsRootTarget, int maxQueueSize, long flushIntervalMillis, int waitBeforeShutdown) throws URISyntaxException- Throws:
URISyntaxException
-
flush
public void flush()the existence of this message in the queue triggers a send event in the consumer thread. -
track
- Specified by:
trackin interfaceEventClient
-
close
public void close()- Specified by:
closein interfaceEventClient
-