This is about to be fixed <https://github.com/akka/akka/pull/17175>.


A possible workaround in 1.0-M5 is that you create the KafkaConsumerActor
yourself and use a Source(ActorSubscriber(kafkaConsumerActorRef)).

/Patrik

On Tue, Apr 14, 2015 at 6:42 AM, Jeff <[email protected]> wrote:

> This is using 1.0-M5
>
>
> On Monday, April 13, 2015 at 9:32:38 PM UTC-7, Jeff wrote:
>>
>> I am creating an ActorPublisher to encapsulate a kafka consumer. I am
>> trying to bulkhead the actor behind a custom dispatcher (since the kafka
>> consumer is blocking) with the following code:
>>
>> val in = Source[Array[Byte]](KafkaConsumerActor.props(consumer.
>> createMessageStreamsByTopic(topic).head).withDispatcher("
>> kafka-consumer-dispatcher"))
>>
>> However, when I set a breakpoint in the receive method and inspect the
>> context, the dispatcher is set to "default-dispatcher"
>>
>>
>> <https://lh3.googleusercontent.com/-GSsCrdUDXtc/VSyYFsKunFI/AAAAAAAABPM/OQ8Q9tdqGbA/s1600/Screen%2BShot%2B2015-04-13%2Bat%2B9.28.27%2BPM.png>
>>
>>  --
> >>>>>>>>>> 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 http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to