A Source[Attributes] implemented by a custom GraphStage might be the solution. Is there something easier?
 
Gesendet: Freitag, 04. März 2016 um 17:22 Uhr
Von: "Stefan Wachter" <[email protected]>
An: "Akka User List" <[email protected]>
Betreff: [akka-user] Usage of "nameLifted" in GraphDSL
Hi all,
 
I have some processing logic encoded in a flow F that is constructed using the GraphDSL (Scala version). The flow is included in a larger processing graph at multiple positions. Inside of F I need a unique identifier for every instantiation (i.e. materialization) because the various materialization use a shared resource (a database) and should distinguish their usage by their id.
 
When using a custom GraphStage to implement the flow logic then I could the inheritedAttributes parameter that is provided with the createLogic invocation
createLogic(inheritedAttributes: Attributes): GraphStageLogic

and then use inheritedAttributes.nameLifted() as an identifier. When using the GraphDSL however, I do not see a mechanism how to inject the Attributes that will be used during materialization.
 
Does someone have a solution to this problem?
 
TIA
 
Stefan
 

 

--
>>>>>>>>>> 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