Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1362

Offering elements to a Source in Akka typed

$
0
0

I’m refering to this documentation - Source

Here under, the definition for Source, it says

“You can push elements to the queue and they will be emitted to the stream if there is demand from downstream”

I have created a source like this -
Source<Object, SourceQueueWithComplete<Object>> sourceQueue = Source.queue(4, OverflowStrategy.backpressure(), 4)

However, I am unsure of how to push elements to this queue, I don’t see an offer method for Source<Object, SourceQueueWithComplete<Object>> but there is an offer method for SourceQueueWithComplete, how can I access this SourceQueueWithComplete<Object> ?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1362

Trending Articles