Class: MiniAkka::MasterActor

Inherits:
SimpleActor
  • Object
show all
Defined in:
lib/mini_akka/actors/master_actor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from SimpleActor

props

Methods included from AkkaAliases

#get_sender, #onReceive

Constructor Details

#initialize(actor_class) ⇒ MasterActor

Returns a new instance of MasterActor.



5
6
7
8
# File 'lib/mini_akka/actors/master_actor.rb', line 5

def initialize(actor_class)
  super()
  @actor_router = self.get_context.actor_of(actor_class.props, MiniAkka.underscore_name(actor_class))
end

Instance Attribute Details

#actor_routerObject (readonly)

Returns the value of attribute actor_router.



3
4
5
# File 'lib/mini_akka/actors/master_actor.rb', line 3

def actor_router
  @actor_router
end