Interface EventAware

    • Method Detail

      • subscribe

        String subscribe​(CollectionEventListener listener)
        Subscribes a listener to the collection event.
        Parameters:
        listener - the listener to subscribe
        Returns:
        the subscription id
      • unsubscribe

        void unsubscribe​(String subscription)
        Unsubscribes a listener from the collection event.
        Parameters:
        subscription - the subscription id to unsubscribe