Kafka has this interface which "gets" a `Processor...
# announcements
s
Kafka has this interface which "gets" a
Processor<K,V>
Copy code
public interface ProcessorSupplier<K, V> {
    Processor<K, V> get();
}
Given I have a class:
Copy code
class EventNotifier : Processor<String, SomeEvent>`
I thought I'd be able to call the
Kstream#process(ProcessorSupplier<? super K, ? super V> var1, String... var2)
method, but I am getting a type mismatch error for:
Copy code
stream.process({ EventNotifier() })
>> Required: Processor<String!, SomeEvent!>!
Found: () -> EventNotifier
k
Can you try forcing the SAM conversion?
stream.process(ProcessorSupplier { EventNotifier() })
s
@karelpeeters That works
k
Strange, maybe report an issue.