Package org.apache.pekko.event
Interface ManagedActorClassification
public interface ManagedActorClassification
Maps ActorRefs to ActorRefs to form an EventBus where ActorRefs can listen to other ActorRefs.
All subscribers will be watched by an org.apache.pekko.event.ActorClassificationUnsubscriber and unsubscribed when they terminate.
The unsubscriber actor will not be stopped automatically, and if you want to stop using the bus you should stop it yourself.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the Classifier associated with the specified Eventvoiddissociate(ActorRef actor) booleandissociate(ActorRef monitored, ActorRef monitor) intmapSize()This is a size hint for the number of Classifiers you expect to have (use powers of 2)voidbooleanregisterWithUnsubscriber(ActorRef subscriber, int seqNr) INTERNAL APIbooleansystem()booleanunregisterFromUnsubscriber(ActorRef subscriber, int seqNr) INTERNAL APIvoidunsubscribe(ActorRef subscriber) booleanunsubscribe(ActorRef subscriber, ActorRef from) The unsubscriber takes care of unsubscribing actors, which have terminated.
-
Method Details
-
associate
-
classify
Returns the Classifier associated with the specified Event -
dissociate
-
dissociate
-
mapSize
int mapSize()This is a size hint for the number of Classifiers you expect to have (use powers of 2) -
publish
-
registerWithUnsubscriber
INTERNAL API -
subscribe
-
system
ActorSystem system() -
unregisterFromUnsubscriber
INTERNAL API -
unsubscribe
-
unsubscribe
-
unsubscriber
ActorRef unsubscriber()The unsubscriber takes care of unsubscribing actors, which have terminated.
-