I am trying to expose Java method via Scala (more details on original java method - it is coming from Kafka)
This is original Java method:
public void commitSync(Map<TopicPartition,OffsetAndMetadata> offsets)
How to expose and pass parameters to a method in Scala? I have something like:
def commitSync() = {
consumer.commitSync(...)
}
Thanks.
Your Scala snippet looks correct, this is how I'd fill up the rest of it: