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
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
MAX_SIZE_BYTES
public static final Long MAX_SIZE_BYTES
-
-
Method Detail
-
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
public boolean track(Event event, int eventSize)
- Specified by:
trackin interfaceEventClient
-
close
public void close()
- Specified by:
closein interfaceEventClient
-
-