A Sink is a Graph; as is a Flow, and a Source - they're all graphs, of a
specific shape.
Here, the method takes a Graph<SinkShape, so yeah you can pass in a Sink.

Seems you're not passing in the materializer?
In Java you have to do that explicitly:


someSource.runWith(sink, materializer)

-- 
Konrad `ktoso` Malawski
Akka <http://akka.io> @ Lightbend <http://lightbend.com>

On 28 April 2017 at 08:36:43, Shannon Ma ([email protected]) wrote:

Hi,

I am new to akka stream kafka, and am trying to follow some the examples to
get start.

I try to use

Source.runWith(Sink.ignore()) or
Soruce.runWith(Producer.commitableSink(producerSettings)

and get this compilation error

The method
runWith(Graph<SinkShape<ConsumerMessage.CommittableMessage<SpecificRecord,SpecificRecord>>,M>,
Materializer) in the type
Source<ConsumerMessage.CommittableMessage<SpecificRecord,SpecificRecord>,Consumer.Control>
is not applicable for the arguments
(Sink<ProducerMessage.Message<SpecificRecord,SpecificRecord,ConsumerMessage.Committable>,CompletionStage<Done>>,
null)


The method expects Graph<>, but examples put Sink, what am i missing?

Thanks
Shannon
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups
"Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to