Re: [akka-user] Source.queue with java sample

2018-02-13 Thread
many thanks !
 But I think I hadn't  described clearly.
what I mean is that ,I want to receive the source from akka remote(which is 
located in another system)

app1 send data to app2 which is a akka stream system



On Tuesday, 13 February 2018 20:55:37 UTC+8, Konrad Malawski wrote:
>
> Browse the docs :-)
>
>
> https://doc.akka.io/japi/akka/current/akka/stream/javadsl/Source.html#queue-int-akka.stream.OverflowStrategy-
>  
>
>
> -- 
> Cheers,
> Konrad 'ktoso <http://kto.so>' Malawski
> Akka <http://akka.io/> @ Lightbend <http://lightbend.com/>
>
> On February 13, 2018 at 13:48:41, 薛永飞 (sire...@gmail.com ) 
> wrote:
>
> I cannot find a Source.queue with  java sample,does anyone has? please!
> --
> >>>>>>>>>> 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 akka-user+...@googlegroups.com .
> To post to this group, send email to akka...@googlegroups.com 
> .
> 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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Source.queue with java sample

2018-02-13 Thread
I cannot find a Source.queue with  java sample,does anyone has? please!

-- 
>>  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Re: Accessing SourceQueue or ActorRef inside Graph for publishing elements

2018-02-12 Thread
use zip method

On Sunday, 22 November 2015 23:49:14 UTC+8, Muki wrote:
>
> Hi,
>
> I have a stream pipeline like this:
>
> progress queue+-> mapping  +-+
>  |
>^^^   |
>|||   v
>||++  +-- merge +--->
>|| |  ^
>|+-+   |  |
>+  +   +  |
> data  +> stage1   +> stage2 ++
>
>
>
>- *data* is a single source that generates the data to be processed
>- *progress queue* is a 
>Source.queue[Progress](10, OverflowStrategy.dropHead) where the 
>progress should be emitted
>- *stage1 *and* stage2* are emitting elements to the next stage and 
>also the the *progress queue*
>
>
> So these are actually two different data pipelines, which are only 
> connected by the *progress queue* and the *merge* in the end.
> The initial implementation just sent messages to a progress actor, which 
> then send it over a play-websocket. Now I want to do this
> with akka-http and the websocket describes as a Flow[Message, Message].
>
> I read "Accessing the materialized value inside the Graph" 
> ,
>  
> but couldn't figure out how to implement this kind of pattern.
>
> Thanks in advance,
> Muki
>

-- 
>>  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] how to combine different flows and merge them when all the flows are reached in akka streams

2017-11-28 Thread
how to combine different flows and merge them when all the flows are 
reached in akka streams?
I want to merge all flows together at the same time ,which means I will 
wait until the last flow reached ,and merge the different flows into 
a large integrate flow?
would you please help me ?
thanks!!

-- 
>>  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.