public class StreamUtils extends Object
MobileEventConsumerService.| Constructor and Description |
|---|
StreamUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.ning.http.client.AsyncHttpClient |
buildHttpClient(ConnectClientConfiguration config)
Builds an AsyncHttpClient.
|
static StreamQueryDescriptor |
buildNewDescriptor(StreamQueryDescriptor baseStreamQueryDescriptor,
OffsetManager offsetManager)
Unpacks the original
StreamQueryDescriptor passed into the
MobileEventConsumerService and creates a new one with an updated offset. |
static boolean |
connectWithRetries(MobileEventStream stream,
ConnectClientConfiguration config,
String appKey) |
public static StreamQueryDescriptor buildNewDescriptor(StreamQueryDescriptor baseStreamQueryDescriptor, OffsetManager offsetManager)
StreamQueryDescriptor passed into the
MobileEventConsumerService and creates a new one with an updated offset.baseStreamQueryDescriptor - The base StreamDescriptor.offsetManager - The OffsetManager.public static com.ning.http.client.AsyncHttpClient buildHttpClient(ConnectClientConfiguration config)
config - ConnectClientConfiguration with timeout settings.public static boolean connectWithRetries(MobileEventStream stream, ConnectClientConfiguration config, String appKey) throws InterruptedException
InterruptedExceptionCopyright © 2016. All rights reserved.