2011-10-12 11:46:49 +02:00
|
|
|
package akka.event.japi
|
|
|
|
|
|
|
|
|
|
import akka.event._
|
|
|
|
|
|
2011-10-12 14:07:49 +02:00
|
|
|
/**
|
2011-12-30 00:00:25 +01:00
|
|
|
* See documentation for [[akka.event.LookupClassification]]
|
2011-10-12 14:07:49 +02:00
|
|
|
* E is the Event type
|
|
|
|
|
* S is the Subscriber type
|
|
|
|
|
* C is the Classifier type
|
|
|
|
|
*/
|
2011-10-12 11:46:49 +02:00
|
|
|
abstract class LookupEventBus[E, S, C] extends EventBus with LookupClassification {
|
|
|
|
|
type Event = E
|
|
|
|
|
type Subscriber = S
|
|
|
|
|
type Classifier = C
|
|
|
|
|
}
|
|
|
|
|
|
2011-10-12 14:07:49 +02:00
|
|
|
/**
|
2011-12-30 00:00:25 +01:00
|
|
|
* See documentation for [[akka.event.SubchannelClassification]]
|
|
|
|
|
* E is the Event type
|
|
|
|
|
* S is the Subscriber type
|
|
|
|
|
* C is the Classifier type
|
|
|
|
|
*/
|
|
|
|
|
abstract class SubchannelEventBus[E, S, C] extends EventBus with SubchannelClassification {
|
|
|
|
|
type Event = E
|
|
|
|
|
type Subscriber = S
|
|
|
|
|
type Classifier = C
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* See documentation for [[akka.event.ScanningClassification]]
|
2011-10-12 14:07:49 +02:00
|
|
|
* E is the Event type
|
|
|
|
|
* S is the Subscriber type
|
|
|
|
|
* C is the Classifier type
|
|
|
|
|
*/
|
2011-10-12 11:46:49 +02:00
|
|
|
abstract class ScanningEventBus[E, S, C] extends EventBus with ScanningClassification {
|
|
|
|
|
type Event = E
|
|
|
|
|
type Subscriber = S
|
|
|
|
|
type Classifier = C
|
|
|
|
|
}
|
|
|
|
|
|
2011-10-12 14:07:49 +02:00
|
|
|
/**
|
2011-12-30 00:00:25 +01:00
|
|
|
* See documentation for [[akka.event.ActorClassification]]
|
2011-10-12 14:07:49 +02:00
|
|
|
* An EventBus where the Subscribers are ActorRefs and the Classifier is ActorRef
|
|
|
|
|
* Means that ActorRefs "listen" to other ActorRefs
|
|
|
|
|
* E is the Event type
|
|
|
|
|
*/
|
2011-10-12 11:46:49 +02:00
|
|
|
abstract class ActorEventBus[E] extends akka.event.ActorEventBus with ActorClassification with ActorClassifier {
|
|
|
|
|
|
2011-10-28 15:55:15 +02:00
|
|
|
}
|