akka-kafka
akka-kafka copied to clipboard
Can AkkaConsumber inherit from a common base trait?
I would like to have a common base for akka consumers... to allow for a generic way to process clean-up
ex:
private[this] val consumerRegistry = new ConcurrentHashMap[String, AkkaConsumerBase[String, _]]
`
def shutdown() = {
logger.info("Shutting down Event Bus")
producer.close()
Await.ready(Future.sequence(consumerRegistry.map(e => e._2.stop())), 5 minute)
}
Thoughts ?
seems legit, want to do a PR?
Sounds good :)