public class MobileEventConsumerService
extends com.google.common.util.concurrent.AbstractExecutionThreadService
MobileEventStream interactions.
Includes basic stream connection/consumption, reconnection, and offset tracking.| Modifier and Type | Class and Description |
|---|---|
static class |
MobileEventConsumerService.Builder |
| Modifier and Type | Method and Description |
|---|---|
AtomicBoolean |
getDoConsume()
Gets the DoConsume flag indicating whether or not the handler should
continue to consume / reconnect to a stream.
|
static MobileEventConsumerService.Builder |
newBuilder()
StreamHandler builder
|
void |
run()
Runs the stream handler by setting doConsume to
true and creating a
MobileEventStream instance. |
void |
triggerShutdown()
Stops any stream handling by setting doConsume to
false. |
public static MobileEventConsumerService.Builder newBuilder()
public AtomicBoolean getDoConsume()
public void run()
true and creating a
MobileEventStream instance. The handler will
continue to consume or create new MobileEventStream instances
until either the handler is stopped or the reconnect attempt limit is reached.run in class com.google.common.util.concurrent.AbstractExecutionThreadServicepublic void triggerShutdown()
false.triggerShutdown in class com.google.common.util.concurrent.AbstractExecutionThreadServiceCopyright © 2016. All rights reserved.