Package org.apache.pekko.event
Interface SubchannelClassification
- All Known Implementing Classes:
EventStream
public interface SubchannelClassification
Classification which respects relationships between channels: subscribing
to one channel automatically and idempotently subscribes to all sub-channels.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCache(scala.collection.immutable.Seq<scala.Tuple2<Object, scala.collection.immutable.Set<Object>>> changes) voidclassify(SubchannelClassification event) Returns the Classifier associated with the given EventbooleanhasSubscriptions(SubchannelClassification subscriber) INTERNAL API Expensive call! Avoid calling directly from event bus subscribe / unsubscribe.voidpublish(SubchannelClassification event) voidpublish(SubchannelClassification event, SubchannelClassification subscriber) Publishes the given Event to the given SubscribervoidremoveFromCache(scala.collection.immutable.Seq<scala.Tuple2<Object, scala.collection.immutable.Set<Object>>> changes) The logic to form sub-class hierarchybooleansubscribe(SubchannelClassification subscriber, SubchannelClassification to) voidunsubscribe(SubchannelClassification subscriber) booleanunsubscribe(SubchannelClassification subscriber, SubchannelClassification from)
-
Method Details
-
addToCache
-
cache_$eq
-
classify
Returns the Classifier associated with the given Event -
hasSubscriptions
INTERNAL API Expensive call! Avoid calling directly from event bus subscribe / unsubscribe. -
publish
Publishes the given Event to the given Subscriber -
publish
-
removeFromCache
-
subclassification
Subclassification<Object> subclassification()The logic to form sub-class hierarchy -
subscribe
-
unsubscribe
-
unsubscribe
-