markusthoemmes commented on a change in pull request #3072: Enhance kafka
message provider
URL:
https://github.com/apache/incubator-openwhisk/pull/3072#discussion_r160149449
##########
File path:
common/scala/src/main/scala/whisk/connector/kafka/KafkaConsumerConnector.scala
##########
@@ -21,46 +21,106 @@ import java.util.Properties
import scala.collection.JavaConversions.iterableAsScalaIterable
import scala.collection.JavaConversions.seqAsJavaList
-import scala.concurrent.duration.Duration
-import scala.concurrent.duration.DurationInt
-import scala.concurrent.duration.FiniteDuration
-
+import scala.concurrent.duration._
+import scala.concurrent.Future
import org.apache.kafka.clients.consumer.ConsumerConfig
import org.apache.kafka.clients.consumer.KafkaConsumer
import org.apache.kafka.common.serialization.ByteArrayDeserializer
-
+import org.apache.kafka.common.errors.{InvalidMetadataException,
WakeupException}
+import akka.actor.ActorSystem
+import org.apache.kafka.common.KafkaException
import whisk.common.Logging
import whisk.core.connector.MessageConsumer
class KafkaConsumerConnector(kafkahost: String,
groupid: String,
topic: String,
+ actorSystem: ActorSystem,
Review comment:
You might want to pass this in as an implicit parameter.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services