Package com.abiquo.apiclient.stream
Class StreamClient
- java.lang.Object
-
- com.abiquo.apiclient.stream.StreamClient
-
- All Implemented Interfaces:
AutoCloseable
public class StreamClient extends Object implements AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStreamClient.AbiquoAPIOAuthstatic classStreamClient.Builderstatic interfaceStreamClient.SSLConfigurationstatic classStreamClient.Traces
-
Field Summary
Fields Modifier and Type Field Description DateFormatdateFormatStringfilterscom.ning.http.client.AsyncHttpClienthttpClientstatic com.fasterxml.jackson.databind.ObjectMapperjsonLonglastEventProcessed
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StreamClient.Builderbuilder(String endpointToM, String endpointToApi)voidclose()voidconnect()List<com.abiquo.tracing.model.Trace>getEventsFromApiAndProcessCallback(StreamClient client)protected voidprocessTrace(com.abiquo.tracing.model.Trace trace)
-
-
-
Field Detail
-
filters
public final String filters
-
lastEventProcessed
public Long lastEventProcessed
-
json
public static final com.fasterxml.jackson.databind.ObjectMapper json
-
dateFormat
public final DateFormat dateFormat
-
httpClient
public com.ning.http.client.AsyncHttpClient httpClient
-
-
Method Detail
-
connect
public void connect() throws IOException- Throws:
IOException
-
processTrace
protected void processTrace(com.abiquo.tracing.model.Trace trace)
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
getEventsFromApiAndProcessCallback
public List<com.abiquo.tracing.model.Trace> getEventsFromApiAndProcessCallback(StreamClient client)
-
builder
public static StreamClient.Builder builder(String endpointToM, String endpointToApi)
-
-