akka.event
Interface ActorClassification


public interface ActorClassification

Maps ActorRefs to ActorRefs to form an EventBus where ActorRefs can listen to other ActorRefs


Method Summary
 boolean associate(ActorRef monitored, ActorRef monitor)
           
 ActorRef classify(akka.event.EventBus.Event event)
          Returns the Classifier associated with the specified Event
 scala.collection.immutable.Iterable<ActorRef> dissociate(ActorRef monitored)
           
 boolean dissociate(ActorRef monitored, ActorRef monitor)
           
 scala.collection.immutable.TreeSet<ActorRef> empty()
           
 java.util.concurrent.ConcurrentHashMap<ActorRef,scala.collection.immutable.TreeSet<ActorRef>> mappings()
           
 int mapSize()
          This is a size hint for the number of Classifiers you expect to have (use powers of 2)
 void publish(akka.event.EventBus.Event event)
           
 boolean subscribe(ActorRef subscriber, ActorRef to)
           
 void unsubscribe(ActorRef subscriber)
           
 boolean unsubscribe(ActorRef subscriber, ActorRef from)
           
 

Method Detail

empty

scala.collection.immutable.TreeSet<ActorRef> empty()

mappings

java.util.concurrent.ConcurrentHashMap<ActorRef,scala.collection.immutable.TreeSet<ActorRef>> mappings()

associate

boolean associate(ActorRef monitored,
                  ActorRef monitor)

dissociate

scala.collection.immutable.Iterable<ActorRef> dissociate(ActorRef monitored)

dissociate

boolean dissociate(ActorRef monitored,
                   ActorRef monitor)

classify

ActorRef classify(akka.event.EventBus.Event event)
Returns the Classifier associated with the specified Event


mapSize

int mapSize()
This is a size hint for the number of Classifiers you expect to have (use powers of 2)


publish

void publish(akka.event.EventBus.Event event)

subscribe

boolean subscribe(ActorRef subscriber,
                  ActorRef to)

unsubscribe

boolean unsubscribe(ActorRef subscriber,
                    ActorRef from)

unsubscribe

void unsubscribe(ActorRef subscriber)