Class RunnableConsumerImpl<V>
java.lang.Object
com.arpnetworking.metrics.common.kafka.RunnableConsumerImpl<V>
- Type Parameters:
V
- the type of the values in kafkaConsumerRecords
- All Implemented Interfaces:
RunnableConsumer
,Runnable
A runnable wrapper for a
Consumer
that will continually poll
the consumer.- Author:
- Joey Jackson (jjackson at dropbox dot com)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder
implementation forRunnableConsumerImpl
. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Determine whether the consumer thread is running.void
run()
void
stop()
Stop theRunnableConsumer
instance.
-
Method Details
-
run
public void run() -
stop
public void stop()Description copied from interface:RunnableConsumer
Stop theRunnableConsumer
instance.- Specified by:
stop
in interfaceRunnableConsumer
-
isRunning
protected boolean isRunning()Determine whether the consumer thread is running.- Returns:
- true if running false if not running.
-