Module: Routing

Defined in:
lib/ara/routing.rb

Defined Under Namespace

Classes: ActorList, B, Dispatcher

Class Method Summary collapse

Class Method Details

.Broadcast(message) ⇒ Object



8
9
10
# File 'lib/ara/routing.rb', line 8

def self.Broadcast(message)
   return B.new(message)
end

.load_balancer_actor(actors) ⇒ Object



2
3
4
5
6
# File 'lib/ara/routing.rb', line 2

def self.load_balancer_actor(actors)
   router = Actors.actor_of(Dispatcher).start
   router | ActorList.new(actors)
   router
end