public abstract class AbstractMessageQueueReader extends com.google.common.util.concurrent.AbstractExecutionThreadService implements MessageQueueReader
MessageQueueReader.Metrics| Constructor and Description |
|---|
AbstractMessageQueueReader(com.google.common.eventbus.EventBus eventBus) |
| Modifier and Type | Method and Description |
|---|---|
void |
listenForLifecycleChanges(Lifecycle lifecycle) |
protected boolean |
shouldBeReading()
Indicates if the reader should read from the message queue or if it should currently pause reading.
|
protected void |
shutDown() |
protected void |
startUp() |
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, run, serviceName, startAsync, state, stopAsync, toString, triggerShutdownpublic AbstractMessageQueueReader(com.google.common.eventbus.EventBus eventBus)
protected void startUp()
throws Exception
startUp in class com.google.common.util.concurrent.AbstractExecutionThreadServiceExceptionprotected void shutDown()
throws Exception
shutDown in class com.google.common.util.concurrent.AbstractExecutionThreadServiceExceptionpublic void listenForLifecycleChanges(Lifecycle lifecycle)
protected boolean shouldBeReading()
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.