Package akka.event

Interface EventBus

  • All Known Subinterfaces:
    ActorEventBus, LoggingBus
    All Known Implementing Classes:
    EventStream

    public interface EventBus
    Attempts to register the subscriber to the specified Classifier
    • Method Detail

      • publish

        void publish​(EventBus event)
        Publishes the specified Event to this bus
        Parameters:
        event - (undocumented)
      • unsubscribe

        boolean unsubscribe​(EventBus subscriber,
                            EventBus from)
        Attempts to deregister the subscriber from the specified Classifier
        Parameters:
        subscriber - (undocumented)
        from - (undocumented)
        Returns:
        true if successful and false if not (because it wasn't subscribed to that Classifier, or otherwise)
      • unsubscribe

        void unsubscribe​(EventBus subscriber)
        Attempts to deregister the subscriber from all Classifiers it may be subscribed to
        Parameters:
        subscriber - (undocumented)